2024-07-23 07:40:10 +00:00
|
|
|
<Window xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-08-15 19:46:43 +00:00
|
|
|
xmlns:vm="using:StarsAssistant.ViewModels"
|
2024-07-23 07:40:10 +00:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
2024-08-15 19:46:43 +00:00
|
|
|
x:Class="StarsAssistant.Views.MainWindow"
|
2024-07-23 07:40:10 +00:00
|
|
|
x:DataType="vm:MainWindowViewModel"
|
2024-07-31 15:50:03 +00:00
|
|
|
Icon="/Assets/avalonia-logo.ico"
|
2024-07-23 07:40:10 +00:00
|
|
|
Title="GetStartedApp">
|
|
|
|
|
|
|
|
<!-- Icon="/Assets/avalonia-logo.ico" -->
|
|
|
|
|
|
|
|
<Design.DataContext>
|
|
|
|
<!-- This only sets the DataContext for the previewer in an IDE,
|
|
|
|
to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
|
|
|
|
<vm:MainWindowViewModel/>
|
|
|
|
</Design.DataContext>
|
|
|
|
|
2024-07-31 15:50:03 +00:00
|
|
|
<TabControl>
|
2024-09-15 20:10:44 +00:00
|
|
|
<TabItem Header="Stars Assistant">
|
|
|
|
<Grid ColumnDefinitions="Auto, *" RowDefinitions="Auto, Auto">
|
|
|
|
<Label Grid.Row="0" Grid.Column="0" Margin="0,5,5,5" Padding="3">Database Path:</Label>
|
|
|
|
<TextBlock x:Name="DbPath" Grid.Row="0" Grid.Column="1" Margin="0 5" Padding="3"/>
|
|
|
|
</Grid>
|
2024-07-31 15:50:03 +00:00
|
|
|
</TabItem>
|
|
|
|
<TabItem Header="DataGrid">
|
2024-09-14 16:47:59 +00:00
|
|
|
<DataGrid x:Name="PlanetsGrid"
|
2024-09-15 20:10:44 +00:00
|
|
|
ItemsSource="{Binding Planets}"
|
|
|
|
IsReadOnly="True"
|
2024-07-31 15:50:03 +00:00
|
|
|
GridLinesVisibility="All"
|
|
|
|
FrozenColumnCount="1"
|
|
|
|
BorderThickness="1" BorderBrush="Gray">
|
2024-09-15 20:10:44 +00:00
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Header="Planet" Binding="{Binding Name}" />
|
|
|
|
<DataGridTextColumn Header="Value" Binding="{Binding Value}" />
|
|
|
|
</DataGrid.Columns>
|
2024-07-31 15:50:03 +00:00
|
|
|
</DataGrid>
|
|
|
|
</TabItem>
|
|
|
|
</TabControl>
|
2024-07-23 07:40:10 +00:00
|
|
|
</Window>
|