TestsCatalog.xaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <Page x:Class="MyTests.Pages.TestsCatalog"
  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:MyTests.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450"
  9. d:DesignWidth="800">
  10. <Grid Background="{StaticResource color1}">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="32*"/>
  13. <RowDefinition Height="193*"/>
  14. </Grid.RowDefinitions>
  15. <Border CornerRadius="15"
  16. Background="{StaticResource color2}"
  17. Margin="5">
  18. <StackPanel Orientation="Horizontal"
  19. HorizontalAlignment="Center">
  20. <StackPanel Orientation="Horizontal"
  21. Grid.Row="0"
  22. HorizontalAlignment="Center">
  23. <TextBox Name="TestNameBox"
  24. Margin="5"
  25. Width="200"
  26. Text="Название теста">
  27. </TextBox>
  28. <TextBox Name="AuthorTestBox"
  29. Margin="5"
  30. Width="200"
  31. Text="Автор">
  32. </TextBox>
  33. </StackPanel>
  34. <Button Height="45"
  35. Width="45"
  36. Content="+"
  37. FontSize="30"
  38. Click="AddTest_Click">
  39. </Button>
  40. </StackPanel>
  41. </Border>
  42. <ListBox Name="TestsListBox"
  43. Grid.Row="1"
  44. Background="{StaticResource color2}"
  45. BorderBrush="{Binding TestsListBox}">
  46. <ScrollViewer VerticalScrollBarVisibility="Visible"/>
  47. </ListBox>
  48. </Grid>
  49. </Page>