TestPage.xaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <Page x:Class="HelpHelf.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:HelpHelf.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="TestPage">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="1*"/>
  13. <RowDefinition Height="70"/>
  14. </Grid.RowDefinitions>
  15. <StackPanel HorizontalAlignment="Center" Grid.Row="1"
  16. Orientation="Horizontal">
  17. <Button Click="btnSave_Click" Height="40" Background="White" Padding="5"
  18. BorderBrush="#0B61A4" BorderThickness="3"
  19. FontFamily="Calibri" FontSize="20" Margin="0,0,5,0"
  20. Name="btnSave" Width="160" Content="Сохранить"
  21. Cursor="Hand"/>
  22. <Button Click="btnCancel_Click" Height="40" Background="White" Padding="5"
  23. BorderBrush="#0B61A4" BorderThickness="3"
  24. FontFamily="Calibri" FontSize="20" Margin="5,0,0,0"
  25. Name="btnCancel" Width="160" Content="Отмена"
  26. Cursor="Hand"/>
  27. </StackPanel>
  28. <ListView Name="listTest" HorizontalContentAlignment="Stretch"
  29. ScrollViewer.CanContentScroll="False"
  30. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  31. <ListView.ItemTemplate>
  32. <DataTemplate>
  33. <StackPanel>
  34. <TextBlock Margin="10,0"
  35. TextWrapping="WrapWithOverflow"
  36. FontFamily="Calibri" FontSize="20"
  37. Text="{Binding Name}"/>
  38. <RadioButton Checked="rbAlways_Checked" Name="rbAlways" Uid="{Binding ID}"
  39. Margin="10,0" FontFamily="Calibri"
  40. FontSize="20" Content="Да, часто"/>
  41. <RadioButton Checked="rbSometimes_Checked" Name="rbSometimes" Uid="{Binding ID}"
  42. Margin="10,0" FontFamily="Calibri"
  43. FontSize="20" Content="Иногда"/>
  44. <RadioButton Checked="rbRarely_Checked" Name="rbRarely" Uid="{Binding ID}"
  45. Margin="10,0" FontFamily="Calibri"
  46. FontSize="20" Content="Редко"/>
  47. <RadioButton Checked="rbNever_Checked" Name="rbNever" Uid="{Binding ID}"
  48. Margin="10,0" FontFamily="Calibri"
  49. FontSize="20" Content="Никогда"/>
  50. </StackPanel>
  51. </DataTemplate>
  52. </ListView.ItemTemplate>
  53. </ListView>
  54. </Grid>
  55. </Page>