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