MainWindow.axaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. <Window xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:vm="using:EntranseTesting.ViewModels"
  4. xmlns:conv="clr-namespace:EntranseTesting.Converter;assembly=EntranseTesting"
  5. xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="500"
  9. MinWidth="500" MinHeight="500"
  10. x:Class="EntranseTesting.Views.MainWindow"
  11. x:DataType="vm:MainWindowViewModel"
  12. Icon="/Assets/icon.ico"
  13. Title="Входное тестирование">
  14. <Design.DataContext>
  15. <!-- This only sets the DataContext for the previewer in an IDE,
  16. to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
  17. <vm:MainWindowViewModel/>
  18. </Design.DataContext>
  19. <Window.Resources>
  20. <conv:SizeConverter x:Key="SizeConverter"/>
  21. <conv:ImageConverter x:Key="ImageConverter"/>
  22. <x:Decimal x:Key="HeaderParameter">1.5</x:Decimal>
  23. <x:Decimal x:Key="Header2Parameter">1.3</x:Decimal>
  24. <x:Decimal x:Key="SmallParameter">0.8</x:Decimal>
  25. <x:Decimal x:Key="ArrangmentParameter">190.0</x:Decimal>
  26. <x:Decimal x:Key="CAFSParameter">300.0</x:Decimal>
  27. <x:Decimal x:Key="ImageParameter">1.1</x:Decimal>
  28. <x:Decimal x:Key="IconWH">20.0</x:Decimal>
  29. <x:Decimal x:Key="ButtonParametr">50.0</x:Decimal>
  30. <x:Decimal x:Key="ButtonNavParametr">23.0</x:Decimal>
  31. </Window.Resources>
  32. <Window.Styles>
  33. <Style Selector=":is(TopLevel)">
  34. <Setter Property="FontFamily" Value="{Binding #MyFont.SelectedValue}"/>
  35. <Setter Property="FontSize" Value="{Binding #MyFontSize.Value}"/>
  36. <Setter Property="TextBlock.TextWrapping" Value="Wrap"/>
  37. </Style>
  38. <Style Selector=":is(TextBlock)">
  39. <Setter Property="FontFamily" Value="{Binding #MyFont.SelectedValue}"/>
  40. <Setter Property="FontSize" Value="{Binding #MyFontSize.Value}"/>
  41. <Setter Property="TextWrapping" Value="Wrap"/>
  42. </Style>
  43. <Style Selector=":is(ComboBox)">
  44. <Setter Property="FontFamily" Value="{Binding #MyFont.SelectedValue}"/>
  45. <Setter Property="FontSize" Value="{Binding #MyFontSize.Value}"/>
  46. <Setter Property="TextBlock.TextWrapping" Value="Wrap"/>
  47. <Setter Property="TextBlock.TextTrimming" Value="CharacterEllipsis"/>
  48. </Style>
  49. <Style Selector=":is(TextBox)">
  50. <Setter Property="FontFamily" Value="{Binding #MyFont.SelectedValue}"/>
  51. <Setter Property="FontSize" Value="{Binding #MyFontSize.Value}"/>
  52. <Setter Property="TextWrapping" Value="Wrap"/>
  53. </Style>
  54. <Style Selector=":is(NumericUpDown)">
  55. <Setter Property="FontFamily" Value="{Binding #MyFont.SelectedValue}"/>
  56. <Setter Property="FontSize" Value="{Binding #MyFontSize.Value}"/>
  57. <Setter Property="TextBlock.TextWrapping" Value="Wrap"/>
  58. </Style>
  59. <Style Selector=":is(TimePicker)">
  60. <Setter Property="FontFamily" Value="{Binding #MyFont.SelectedValue}"/>
  61. <Setter Property="FontSize" Value="{Binding #MyFontSize.Value}"/>
  62. </Style>
  63. <Style Selector=":is(Button)">
  64. <Setter Property="FontFamily" Value="{Binding #MyFont.SelectedValue}"/>
  65. <Setter Property="FontSize" Value="{Binding #MyFontSize.Value}"/>
  66. <Setter Property="TextBlock.TextWrapping" Value="Wrap"/>
  67. </Style>
  68. <Style Selector=":is(TextBlock).Header">
  69. <Setter Property="FontSize" Value="{Binding #MyFontSize.Value, Converter={StaticResource SizeConverter}, ConverterParameter={StaticResource HeaderParameter}}"/>
  70. <Setter Property="FontWeight" Value="Bold"/>
  71. <Setter Property="Margin" Value="5 10 5 15"/>
  72. </Style>
  73. <Style Selector=":is(TextBlock).Header2">
  74. <Setter Property="FontSize" Value="{Binding #MyFontSize.Value, Converter={StaticResource SizeConverter}, ConverterParameter={StaticResource Header2Parameter}}"/>
  75. <Setter Property="FontWeight" Value="Bold"/>
  76. </Style>
  77. <Style Selector=":is(TextBlock).Small">
  78. <Setter Property="FontSize" Value="{Binding #MyFontSize.Value, Converter={StaticResource SizeConverter}, ConverterParameter={StaticResource SmallParameter}}"/>
  79. <Setter Property="Margin" Value="5"/>
  80. <Setter Property="Opacity" Value="0.9"/>
  81. </Style>
  82. <Style Selector=":is(Border).Arrangment">
  83. <Setter Property="Width" Value="{Binding #MyFontSize.Value, Converter={StaticResource ImageConverter}, ConverterParameter={StaticResource ArrangmentParameter}}"/>
  84. </Style>
  85. <Style Selector=":is(Border).CAFS">
  86. <Setter Property="Width" Value="{Binding #MyFontSize.Value, Converter={StaticResource ImageConverter}, ConverterParameter={StaticResource CAFSParameter}}"/>
  87. </Style>
  88. <Style Selector=":is(IconElement)">
  89. <Setter Property="Width" Value="{Binding #MyFontSize.Value, Converter={StaticResource ImageConverter}, ConverterParameter={StaticResource IconWH}}"/>
  90. <Setter Property="Height" Value="{Binding #MyFontSize.Value, Converter={StaticResource ImageConverter}, ConverterParameter={StaticResource IconWH}}"/>
  91. </Style>
  92. <Style Selector=":is(Button).Progress">
  93. <Setter Property="Width" Value="{Binding #MyFontSize.Value, Converter={StaticResource ImageConverter}, ConverterParameter={StaticResource ButtonParametr}}"/>
  94. </Style>
  95. <Style Selector=":is(Button).ProgressNav">
  96. <Setter Property="Width" Value="{Binding #MyFontSize.Value, Converter={StaticResource ImageConverter}, ConverterParameter={StaticResource ButtonNavParametr}}"/>
  97. </Style>
  98. <Style Selector=":is(Image).Test">
  99. <Setter Property="MaxWidth" Value="150"/>
  100. <Setter Property="MaxHeight" Value="100"/>
  101. <Setter Property="Stretch" Value="Uniform"/>
  102. <Setter Property="Cursor" Value="Hand"/>
  103. </Style>
  104. <Style Selector=":is(Expander).Content">
  105. <Setter Property="Width" Value="{Binding #MyFontSize.Value, Converter={StaticResource ImageConverter}, ConverterParameter={StaticResource CAFSParameter}}"/>
  106. </Style>
  107. <Style Selector=":is(Image).Test:pointerover">
  108. <Setter Property="MaxWidth" Value="350"/>
  109. <Setter Property="MaxHeight" Value="300"/>
  110. </Style>
  111. <Style Selector=":is(Button).icon">
  112. <Setter Property="Template">
  113. <ControlTemplate>
  114. <Border Background="{TemplateBinding Background}"
  115. BorderBrush="{TemplateBinding BorderBrush}"
  116. BorderThickness="{TemplateBinding BorderThickness}"
  117. CornerRadius="{StaticResource ControlCornerRadius}"
  118. Padding="{TemplateBinding Padding}">
  119. <DockPanel>
  120. <PathIcon Foreground="{TemplateBinding Foreground}"
  121. Data="{TemplateBinding Tag}"
  122. DockPanel.Dock="Left" />
  123. <ContentPresenter Content="{TemplateBinding Content}"
  124. IsVisible="{Binding IsPaneOpen}"
  125. Margin="10,0,10,0"
  126. TextBlock.Foreground="{TemplateBinding Foreground}"
  127. ContentTemplate="{TemplateBinding ContentTemplate}"
  128. HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
  129. VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />
  130. </DockPanel>
  131. </Border>
  132. </ControlTemplate>
  133. </Setter>
  134. </Style>
  135. <Style Selector=":is(Button).icon:pointerover">
  136. <Setter Property="Opacity" Value="0.35"/>
  137. </Style>
  138. <Style Selector=":is(Button).icon:pressed">
  139. <Setter Property="Opacity" Value="0.65"/>
  140. </Style>
  141. <Style Selector=":is(Button).menu">
  142. <Setter Property="Template">
  143. <ControlTemplate>
  144. <Border Background="{TemplateBinding Background}"
  145. BorderBrush="{TemplateBinding BorderBrush}"
  146. BorderThickness="{TemplateBinding BorderThickness}"
  147. CornerRadius="10,0"
  148. Padding="{TemplateBinding Padding}">
  149. <DockPanel>
  150. <PathIcon Foreground="{TemplateBinding Foreground}"
  151. Data="{TemplateBinding Tag}"
  152. DockPanel.Dock="Left"/>
  153. <ContentPresenter Content="{TemplateBinding Content}"
  154. Margin="10,0,10,0"
  155. TextBlock.Foreground="{TemplateBinding Foreground}"
  156. ContentTemplate="{TemplateBinding ContentTemplate}"
  157. HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
  158. VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />
  159. </DockPanel>
  160. </Border>
  161. </ControlTemplate>
  162. </Setter>
  163. </Style>
  164. <Style Selector=":is(Button):disabled">
  165. <Setter Property="Background" Value="#696BFF"/>
  166. </Style>
  167. </Window.Styles>
  168. <dialogHost:DialogHost CloseOnClickAway="True"
  169. IsOpen="{Binding IsOpenAuthorization}">
  170. <dialogHost:DialogHost.DialogContent>
  171. <StackPanel Spacing="15" Margin="15 10">
  172. <TextBlock Text="Авторизация" Classes="Header"
  173. HorizontalAlignment="Center"/>
  174. <TextBox Width="250" Watermark="Логин" Text="{Binding Login}"/>
  175. <TextBox Width="250" Watermark="Пароль" Text="{Binding Password}"
  176. PasswordChar="*"/>
  177. <Button Content="Войти" Command="{Binding AuthorizationCommand}"
  178. HorizontalAlignment="Center"/>
  179. </StackPanel>
  180. </dialogHost:DialogHost.DialogContent>
  181. <SplitView IsPaneOpen="{Binding IsPaneOpen}"
  182. CompactPaneLength="50"
  183. OpenPaneLength="300"
  184. DisplayMode="CompactInline">
  185. <SplitView.Pane>
  186. <Grid RowDefinitions="Auto, *, Auto">
  187. <Button Command="{Binding IsClickPainCommand}" Classes="icon"
  188. Tag="{StaticResource LineHorizontal3Regular}"
  189. Background="Transparent" Grid.Row="0" Margin="5"/>
  190. <ScrollViewer HorizontalScrollBarVisibility="Disabled"
  191. VerticalScrollBarVisibility="Auto"
  192. Grid.Row="1">
  193. <StackPanel Spacing="5" Margin="5"
  194. VerticalAlignment="Top">
  195. <!-- // Кнопка Авторизация //-->
  196. <Button Command="{Binding OpenAuthorizationCommand}" Classes="icon"
  197. IsVisible="{Binding IsAuth}" HorizontalAlignment="Stretch"
  198. Tag="{StaticResource PersonRegular}" Content="Авторизироваться"
  199. ToolTip.Tip="Авторизироваться в системе"
  200. Background="Transparent"/>
  201. <!-- // Кнопка Изменения текста //-->
  202. <Button Command="{Binding IsTextClickCommand}" Classes="icon"
  203. HorizontalAlignment="Stretch"
  204. Tag="{StaticResource TextFieldRegular}" Content="Отображение текста"
  205. ToolTip.Tip="Настройка отображения текста"
  206. Background="Transparent"/>
  207. <!-- // Параметры Изменения текста //-->
  208. <WrapPanel IsVisible="{Binding TextChangeVisible}" Margin="10 0">
  209. <TextBlock Text="Шрифт"/>
  210. <ComboBox Name="MyFont"
  211. ItemsSource="{Binding IS.Fonts}" SelectedItem="{Binding IS.SelectedFont}"
  212. AutoScrollToSelectedItem="True"
  213. IsTextSearchEnabled="True"
  214. Width="200"/>
  215. </WrapPanel>
  216. <WrapPanel IsVisible="{Binding TextChangeVisible}" Margin="10 0">
  217. <TextBlock Text="Размер шрифта"/>
  218. <NumericUpDown Name="MyFontSize"
  219. Value="{Binding IS.MyFontSize}"
  220. Minimum="10" Maximum="28"
  221. Increment="2"
  222. MinWidth="100"
  223. ButtonSpinnerLocation="Left"/>
  224. </WrapPanel>
  225. <!-- // Кнопка Инфо Подсказки //-->
  226. <Button Command="{Binding IsHintClickCommand}" Classes="icon"
  227. IsVisible="{Binding Info}" HorizontalAlignment="Stretch"
  228. Tag="{StaticResource LightbulbCircleRegular}" Content="Система подсказок"
  229. ToolTip.Tip="Информация о системе подсказок"
  230. Background="Transparent"/>
  231. <!-- // Текст Инфо Подсказки //-->
  232. <TextBlock Text="{Binding Mess.InfoHint}"
  233. IsVisible="{Binding HintVisible}"
  234. Margin="10 0"/>
  235. <!-- // Кнопка Добавления вопроса //-->
  236. <Button Command="{Binding AddQuestion}" Classes="icon"
  237. IsVisible="{Binding EditorPages.EditingVisible}" HorizontalAlignment="Stretch"
  238. Tag="{StaticResource AddSquareRegular}" Content="Добавить вопрос"
  239. ToolTip.Tip="Добавить вопрос"
  240. Background="Transparent"/>
  241. <!-- // Фильтрация и сортировка //-->
  242. <StackPanel Orientation="Vertical" Spacing="5"
  243. IsVisible="{Binding EditorPages.EditingVisible}" >
  244. <Button Command="{Binding IsClickPainCommand}" Classes="icon"
  245. HorizontalAlignment="Stretch"
  246. Tag="{StaticResource FilterRegular}" Content="Фильтрация и сортировка"
  247. ToolTip.Tip="Фильтрация и сортировка вопросов"
  248. Background="Transparent"/>
  249. <StackPanel Orientation="Vertical" Spacing="10"
  250. IsVisible="{Binding IsPaneOpen}">
  251. <!-- // Поиск //-->
  252. <StackPanel Orientation="Vertical" Margin="5">
  253. <TextBlock Text="Искать по вопросу"
  254. HorizontalAlignment="Stretch"/>
  255. <TextBox Text="{Binding EditorPages.TaskMainPage.SearchLine}"
  256. TextBlock.TextWrapping="NoWrap"
  257. HorizontalAlignment="Stretch"/>
  258. </StackPanel>
  259. <!-- // Фильтрация //-->
  260. <StackPanel Orientation="Vertical" Margin="5">
  261. <TextBlock Text="Фильтровать по типу задания"
  262. HorizontalAlignment="Stretch"/>
  263. <ComboBox ItemsSource="{Binding EditorPages.TaskMainPage.CategoryList}"
  264. SelectedItem="{Binding EditorPages.TaskMainPage.SelectedCategory}"
  265. TextBlock.TextWrapping="NoWrap"
  266. TextBlock.TextTrimming="WordEllipsis"
  267. HorizontalAlignment="Stretch"/>
  268. </StackPanel>
  269. <!-- // Сортировка //-->
  270. <StackPanel Orientation="Vertical" Margin="5">
  271. <TextBlock Text="Сортировать"
  272. VerticalAlignment="Center"/>
  273. <ComboBox ItemsSource="{Binding EditorPages.TaskMainPage.SortList}"
  274. SelectedItem="{Binding EditorPages.TaskMainPage.SelectedSort}"
  275. WrapSelection="False"
  276. TextBlock.TextWrapping="NoWrap"
  277. HorizontalAlignment="Stretch"/>
  278. </StackPanel>
  279. <!-- // Те которые включаются в тест //-->
  280. <CheckBox Content="Вопросы, включаемые в тест"
  281. HorizontalAlignment="Stretch" Margin="5"
  282. IsChecked="{Binding EditorPages.TaskMainPage.SelectedInTest}"/>
  283. </StackPanel>
  284. </StackPanel>
  285. <!-- Вопросы к заданиям-->
  286. <StackPanel Orientation="Vertical" Spacing="5" HorizontalAlignment="Stretch"
  287. IsVisible="{Binding ButtonVisible}" >
  288. <Button Command="{Binding IsClickPainCommand}" Classes="icon"
  289. HorizontalAlignment="Stretch"
  290. Tag="{StaticResource TableSettingsRegular}" Content="Навигация по тесту"
  291. ToolTip.Tip="Навигация по тесту"
  292. Background="Transparent"/>
  293. <ItemsRepeater ItemsSource="{Binding TestMain.TestPages.ProgressButtons}"
  294. VerticalAlignment="Stretch" HorizontalAlignment="Center"
  295. Margin="5 15" IsVisible="{Binding IsPaneOpen}">
  296. <ItemsRepeater.Layout>
  297. <WrapLayout HorizontalSpacing="5" VerticalSpacing="5" Orientation="Horizontal"/>
  298. </ItemsRepeater.Layout>
  299. <ItemsRepeater.ItemTemplate>
  300. <DataTemplate>
  301. <Button Content="{Binding Num}"
  302. Classes="Progress"
  303. Classes.active="{Binding Active}" Classes.check="{Binding Check}"
  304. Command="{Binding $parent[Window].((vm:MainWindowViewModel)DataContext).TestMain.ClickToQuestion}"
  305. CommandParameter="{Binding Num}"
  306. HorizontalContentAlignment="Center"
  307. VerticalContentAlignment="Center">
  308. <Button.Styles>
  309. <Style Selector=":is(Button).check">
  310. <Setter Property="Background" Value="LightGreen"/>
  311. </Style>
  312. <Style Selector=":is(Button).active">
  313. <Setter Property="Background" Value="#696BFF"/>
  314. </Style>
  315. </Button.Styles>
  316. </Button>
  317. </DataTemplate>
  318. </ItemsRepeater.ItemTemplate>
  319. </ItemsRepeater>
  320. </StackPanel>
  321. <StackPanel Orientation="Vertical" Spacing="10"
  322. IsVisible="{Binding UserResultVisible}">
  323. <!-- Инфо о метках -->
  324. <Button Command="{Binding IsClickPainCommand}" Classes="icon"
  325. HorizontalAlignment="Stretch"
  326. Tag="{StaticResource InfoRegular}" Content="Информация о метках"
  327. Background="Transparent">
  328. <ToolTip.Tip>
  329. <StackPanel Orientation="Vertical">
  330. <TextBlock Margin="2">
  331. <TextBlock.Inlines>
  332. <Run Text="&#x09;&#x09;" Background="LightGreen"/>
  333. <Run Text=" Правильно "/>
  334. </TextBlock.Inlines>
  335. </TextBlock>
  336. <TextBlock Margin="2">
  337. <TextBlock.Inlines>
  338. <Run Text="&#x09;&#x09;" Background="Yellow"/>
  339. <Run Text=" Частично правильно "/>
  340. </TextBlock.Inlines>
  341. </TextBlock>
  342. <TextBlock Margin="2">
  343. <TextBlock.Inlines>
  344. <Run Text="&#x09;&#x09;" Background="LightGray"/>
  345. <Run Text=" Правильно, но не выбрано"/>
  346. </TextBlock.Inlines>
  347. </TextBlock>
  348. <TextBlock Margin="2">
  349. <TextBlock.Inlines>
  350. <Run Text="&#x09;&#x09;" Background="LightCoral"/>
  351. <Run Text=" Не правильно"/>
  352. </TextBlock.Inlines>
  353. </TextBlock>
  354. <TextBlock Margin="2">
  355. <TextBlock.Inlines>
  356. <Run Text="&#x09;&#x09;" Background="LightSalmon"/>
  357. <Run Text=" Не правильно, но выбрано "/>
  358. </TextBlock.Inlines>
  359. </TextBlock>
  360. </StackPanel>
  361. </ToolTip.Tip>
  362. </Button>
  363. <!-- Поиск, сортировка в результатах пользователя -->
  364. <StackPanel Orientation="Vertical" Spacing="10"
  365. IsVisible="{Binding IsPaneOpen}"
  366. Margin="5 0">
  367. <StackPanel Orientation="Vertical" Margin="0 0 15 0"
  368. Spacing="5" >
  369. <TextBlock Text="Поиск по вопросу"/>
  370. <TextBox Text="{Binding UserResult.SearchLine}" HorizontalAlignment="Stretch"/>
  371. </StackPanel>
  372. <CheckBox IsThreeState="True" IsChecked="{Binding UserResult.CorrectlyVisible}"
  373. Margin="5 0"
  374. ToolTip.Tip="Параметр: Состояние вопроса [Решен/Не решен]">
  375. <CheckBox.Styles>
  376. <Style Selector="CheckBox:checked">
  377. <Setter Property="Content" Value="Вопросы с правильным ответом"/>
  378. </Style>
  379. <Style Selector="CheckBox:unchecked">
  380. <Setter Property="Content" Value="Вопрос с не правильным ответом"/>
  381. </Style>
  382. <Style Selector="CheckBox">
  383. <Setter Property="Content" Value="Все вопросы"/>
  384. </Style>
  385. </CheckBox.Styles>
  386. </CheckBox>
  387. <CheckBox IsThreeState="True" IsChecked="{Binding UserResult.ResponseVisible}"
  388. Margin="5 0"
  389. ToolTip.Tip="Параметр: Состояние вопроса [Решен/Пропущен]">
  390. <CheckBox.Styles>
  391. <Style Selector="CheckBox:checked">
  392. <Setter Property="Content" Value="Вопросы с ответом"/>
  393. </Style>
  394. <Style Selector="CheckBox:unchecked">
  395. <Setter Property="Content" Value="Пропущенные вопросы"/>
  396. </Style>
  397. <Style Selector="CheckBox">
  398. <Setter Property="Content" Value="Все вопросы"/>
  399. </Style>
  400. </CheckBox.Styles>
  401. </CheckBox>
  402. <CheckBox IsThreeState="True" IsChecked="{Binding UserResult.HintVisible}"
  403. Margin="5 0"
  404. ToolTip.Tip="Параметр: Состояние подсказки [Использована/Не использована]">
  405. <CheckBox.Styles>
  406. <Style Selector="CheckBox:checked">
  407. <Setter Property="Content" Value="Вопросы с применением подсказок"/>
  408. </Style>
  409. <Style Selector="CheckBox:unchecked">
  410. <Setter Property="Content" Value="Вопросы без применения подсказок"/>
  411. </Style>
  412. <Style Selector="CheckBox">
  413. <Setter Property="Content" Value="Все вопросы"/>
  414. </Style>
  415. </CheckBox.Styles>
  416. </CheckBox>
  417. </StackPanel>
  418. </StackPanel>
  419. </StackPanel>
  420. </ScrollViewer>
  421. <!-- // Кнопка выхода //-->
  422. <Button Command="{Binding ToBackCommand}" Margin="5"
  423. IsVisible="{Binding IsExit}" Classes="icon"
  424. VerticalAlignment="Bottom" HorizontalAlignment="Right"
  425. Tag="{StaticResource SignOutRegular}" Content="Выйти"
  426. ToolTip.Tip="Вернуться на главную страницу"
  427. Background="Transparent" Grid.Row="2"/>
  428. </Grid>
  429. </SplitView.Pane>
  430. <SplitView.Content>
  431. <ContentControl Content="{Binding UC}"
  432. HorizontalAlignment="Stretch"
  433. VerticalAlignment="Stretch"
  434. Name="TestContent"/>
  435. </SplitView.Content>
  436. </SplitView>
  437. </dialogHost:DialogHost>
  438. </Window>