updated tests
This commit is contained in:
parent
da94963c4f
commit
0d7c14e9a1
@ -10,7 +10,7 @@
|
|||||||
</Application.DataTemplates>
|
</Application.DataTemplates>
|
||||||
|
|
||||||
<Application.Styles>
|
<Application.Styles>
|
||||||
<FluentTheme />
|
<FluentTheme DensityStyle="Compact" />
|
||||||
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/>
|
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/>
|
||||||
</Application.Styles>
|
</Application.Styles>
|
||||||
</Application>
|
</Application>
|
@ -11,11 +11,9 @@
|
|||||||
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- PropertyGroup>
|
<ItemGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<AvaloniaResource Include="Assets\**" />
|
||||||
</PropertyGroup -->
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="net.nehmer.sa.Views.MainWindow"
|
x:Class="net.nehmer.sa.Views.MainWindow"
|
||||||
x:DataType="vm:MainWindowViewModel"
|
x:DataType="vm:MainWindowViewModel"
|
||||||
|
Icon="/Assets/avalonia-logo.ico"
|
||||||
Title="GetStartedApp">
|
Title="GetStartedApp">
|
||||||
|
|
||||||
<!-- Icon="/Assets/avalonia-logo.ico" -->
|
<!-- Icon="/Assets/avalonia-logo.ico" -->
|
||||||
@ -16,6 +17,8 @@
|
|||||||
<vm:MainWindowViewModel/>
|
<vm:MainWindowViewModel/>
|
||||||
</Design.DataContext>
|
</Design.DataContext>
|
||||||
|
|
||||||
|
<TabControl>
|
||||||
|
<TabItem Header="Home">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<Border Margin="5" CornerRadius="10" Background="LightBlue">
|
<Border Margin="5" CornerRadius="10" Background="LightBlue">
|
||||||
<TextBlock Margin="5" FontSize="24" HorizontalAlignment="Center" Text="{Binding Greeting}"></TextBlock>
|
<TextBlock Margin="5" FontSize="24" HorizontalAlignment="Center" Text="{Binding Greeting}"></TextBlock>
|
||||||
@ -27,13 +30,18 @@
|
|||||||
<TextBox Grid.Row="1" Grid.Column="1" Margin="0 5" Text="0" Name="fahrenheit"/>
|
<TextBox Grid.Row="1" Grid.Column="1" Margin="0 5" Text="0" Name="fahrenheit"/>
|
||||||
<Button Grid.Row="2" Grid.Column="1" Margin="0 5" Click="ButtonClicked">Calculate</Button>
|
<Button Grid.Row="2" Grid.Column="1" Margin="0 5" Click="ButtonClicked">Calculate</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
<DataGrid Margin="20" ItemsSource="{Binding Planets}"
|
</StackPanel>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem Header="DataGrid">
|
||||||
|
<DataGrid ItemsSource="{Binding Planets}"
|
||||||
AutoGenerateColumns="True" IsReadOnly="True"
|
AutoGenerateColumns="True" IsReadOnly="True"
|
||||||
GridLinesVisibility="All"
|
GridLinesVisibility="All"
|
||||||
|
FrozenColumnCount="1"
|
||||||
BorderThickness="1" BorderBrush="Gray">
|
BorderThickness="1" BorderBrush="Gray">
|
||||||
</DataGrid>
|
</DataGrid>
|
||||||
|
</TabItem>
|
||||||
<!-- ScrollViewer>
|
<TabItem Header="ScrollViewer">
|
||||||
|
<ScrollViewer>
|
||||||
<ItemsControl ItemsSource="{Binding Planets}">
|
<ItemsControl ItemsSource="{Binding Planets}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate DataType="vm:PlanetViewModel">
|
<DataTemplate DataType="vm:PlanetViewModel">
|
||||||
@ -45,8 +53,7 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
</ScrollViewer-->
|
</ScrollViewer>
|
||||||
|
</TabItem>
|
||||||
</StackPanel>
|
</TabControl>
|
||||||
|
|
||||||
</Window>
|
</Window>
|
||||||
|
Loading…
Reference in New Issue
Block a user