EditorPage.axaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.EditorPage"
  7. x:DataType="vm:MainWindowViewModel"
  8. xmlns:vm="using:EntranseTesting.ViewModels">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="Auto"/>
  12. <RowDefinition Height="*"/>
  13. </Grid.RowDefinitions>
  14. <WrapPanel Orientation="Horizontal" Margin="10">
  15. <Button Content="Настройки теста"
  16. Tag="{StaticResource SettingsRegular}"
  17. IsEnabled="{Binding EditorPages.EnabledSettings}"
  18. Command="{Binding EditorPages.ClickToSettingsCommand}"
  19. Margin="5"
  20. Classes="menu"/>
  21. <Button Content="Задания для теста"
  22. Tag="{StaticResource ComposeRegular}"
  23. IsEnabled="{Binding EditorPages.EnabledTaskMain}"
  24. Command="{Binding EditorPages.ClickToTaskMainCommand}"
  25. Margin="5"
  26. Classes="menu"/>
  27. <Button Content="Результаты тестирования"
  28. Tag="{StaticResource CheckboxCheckedRegular}"
  29. IsEnabled="{Binding EditorPages.EnabledResults}"
  30. Command="{Binding EditorPages.ClickToUserResultsCommand}"
  31. Margin="5"
  32. Classes="menu"/>
  33. </WrapPanel>
  34. <ContentControl Content="{Binding EditorPages.EditorUC}"
  35. Grid.Row="1"
  36. HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"/>
  37. </Grid>
  38. </UserControl>