TestPage.xaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <Page x:Class="AlenaTest.Pages.TestPage"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:AlenaTest.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="TestPage">
  10. <Grid HorizontalAlignment="Center">
  11. <Grid.RowDefinitions>
  12. <RowDefinition />
  13. <RowDefinition Height="Auto"/>
  14. </Grid.RowDefinitions>
  15. <ListView Width="800" Name="list" Grid.Row="0">
  16. <ListView.ItemTemplate>
  17. <DataTemplate>
  18. <StackPanel>
  19. <TextBlock Text="{Binding Title}"/>
  20. <GroupBox>
  21. <StackPanel>
  22. <RadioButton Content="{Binding A1}" Checked="RadioButton_Checked"/>
  23. <RadioButton Content="{Binding A2}" Checked="RadioButton_Checked"/>
  24. <RadioButton Content="{Binding A3}" Checked="RadioButton_Checked"/>
  25. </StackPanel>
  26. </GroupBox>
  27. </StackPanel>
  28. </DataTemplate>
  29. </ListView.ItemTemplate>
  30. </ListView>
  31. <StackPanel Grid.Row="1">
  32. <Button Content="Результат" Click="Button_Click"/>
  33. </StackPanel>
  34. </Grid>
  35. </Page>