EditPage.xaml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <Page
  2. x:Class="Maple_App.EditPage"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:local="using:Maple_App"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:Windows10FallCreatorsUpdate="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 5)"
  9. xmlns:Windows10version1809="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 7)"
  10. mc:Ignorable="d"
  11. NavigationCacheMode="Disabled">
  12. <Page.Resources>
  13. <ResourceDictionary>
  14. <Flyout x:Name="ValidConfigFlyout">
  15. <StackPanel Orientation="Horizontal">
  16. <SymbolIcon Symbol="Accept" VerticalAlignment="Center" Margin="0, 0, 8, 0"/>
  17. <TextBlock TextWrapping="Wrap">No error</TextBlock>
  18. </StackPanel>
  19. </Flyout>
  20. <Flyout x:Name="InvalidConfigFlyout">
  21. <StackPanel Orientation="Horizontal">
  22. <SymbolIcon Symbol="Important" VerticalAlignment="Center" Margin="0, 0, 8, 0"/>
  23. <TextBlock TextWrapping="Wrap">
  24. <Run>There is an error(s) in your configuration.</Run>
  25. <LineBreak/>
  26. <Run>Please check carefully and correct them.</Run>
  27. </TextBlock>
  28. </StackPanel>
  29. </Flyout>
  30. </ResourceDictionary>
  31. </Page.Resources>
  32. <Grid>
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="Auto"/>
  35. <RowDefinition Height="*"/>
  36. </Grid.RowDefinitions>
  37. <CommandBar Grid.Row="0" DefaultLabelPosition="Right">
  38. <CommandBar.PrimaryCommands>
  39. <AppBarButton x:Name="SaveButton" IsEnabled="False" Icon="Save" Label="Save" Click="SaveButton_Click">
  40. <AppBarButton.Command>
  41. <Windows10version1809:StandardUICommand Kind="Save"/>
  42. </AppBarButton.Command>
  43. </AppBarButton>
  44. <AppBarButton Icon="Help" Label="Help" Click="HelpButton_Click">
  45. <Windows10FallCreatorsUpdate:AppBarButton.KeyboardAccelerators>
  46. <Windows10FallCreatorsUpdate:KeyboardAccelerator Key="F1"/>
  47. </Windows10FallCreatorsUpdate:AppBarButton.KeyboardAccelerators>
  48. </AppBarButton>
  49. </CommandBar.PrimaryCommands>
  50. </CommandBar>
  51. <RichEditBox
  52. x:Name="EditBox"
  53. Grid.Row="1"
  54. FontFamily="Consolas"
  55. IsColorFontEnabled="True"
  56. TextChanging="EditBox_TextChanging"/>
  57. </Grid>
  58. </Page>