TestMain.axaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. x:Class="EntranseTesting.TestMain"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:EntranseTesting.ViewModels">
  9. <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
  10. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  11. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"
  12. Spacing="5">
  13. <WrapPanel Orientation="Vertical" HorizontalAlignment="Right">
  14. <TextBlock Text="Группа"
  15. VerticalAlignment="Center"
  16. Margin="5 2"/>
  17. <TextBox Text="{Binding TestMain.GroupUser}"
  18. Width="250"/>
  19. </WrapPanel>
  20. <WrapPanel Orientation="Vertical" HorizontalAlignment="Right"
  21. Margin="0 7">
  22. <TextBlock Text="ФИО"
  23. VerticalAlignment="Center"
  24. Margin="5 2"/>
  25. <TextBox Text="{Binding TestMain.NameUser}"
  26. Width="250"/>
  27. </WrapPanel>
  28. <Button Content="Начать тестирование"
  29. Command="{Binding StartTestingCommand}"
  30. HorizontalAlignment="Center"
  31. Margin="0 25 0 0"/>
  32. </StackPanel>
  33. </Grid>
  34. </ScrollViewer>
  35. </UserControl>