CPDFTitleBarControl.xaml 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <UserControl x:Class="Compdfkit_Tools.PDFControl.CPDFTitleBarControl"
  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. mc:Ignorable="d"
  7. d:DesignHeight="40" d:DesignWidth="1280">
  8. <UserControl.Resources>
  9. <ResourceDictionary>
  10. <ResourceDictionary.MergedDictionaries>
  11. <ResourceDictionary Source="../../Asset/Styles/MenuItemStyle.xaml"></ResourceDictionary>
  12. </ResourceDictionary.MergedDictionaries>
  13. </ResourceDictionary>
  14. </UserControl.Resources>
  15. <Grid x:Name="TitleBarGrid" Background="#FFFFFF" HorizontalAlignment="Stretch">
  16. <Grid Height="40" Width="auto" HorizontalAlignment="Left">
  17. <StackPanel Orientation="Horizontal">
  18. <Menu
  19. Width="auto"
  20. Background="Transparent"
  21. VerticalAlignment="Top"
  22. HorizontalAlignment="Left">
  23. <MenuItem Header="File" Style="{StaticResource Dropdown_MenuItem}">
  24. <MenuItem Header="Open File(Ctrl+O)" Name="OpenFileItem" Style="{StaticResource Sub_MenuItem}" Click="OpenFileItem_Click"></MenuItem>
  25. <MenuItem Header="Save File(Ctrl+S)" Style="{StaticResource Sub_MenuItem}" Click="SaveFileItem_Click" IsEnabled="{Binding CanSave, RelativeSource={RelativeSource AncestorType=UserControl}}"></MenuItem>
  26. <MenuItem Header="Save As(Ctrl+Shift+S)" Style="{StaticResource Sub_MenuItem}" Click="SaveAsItem_Click"></MenuItem>
  27. </MenuItem>
  28. <MenuItem Header="Help" Style="{StaticResource Dropdown_MenuItem}">
  29. <MenuItem Header="About Us" Style="{StaticResource Sub_MenuItem}" Click="AboutUsItem_Click"></MenuItem>
  30. <MenuItem Header="Contact Us" Style="{StaticResource Sub_MenuItem}" Click="ContactUs_Click"></MenuItem>
  31. <MenuItem Header="Privacy Agreement" Style="{StaticResource Sub_MenuItem}" Click="PrivacyAgreement_Click"></MenuItem>
  32. <MenuItem Header="Service Terms" Style="{StaticResource Sub_MenuItem}" Click="ServiceTerms_Click"></MenuItem>
  33. <MenuItem Header="Developer Device ID" Style="{StaticResource Sub_MenuItem}" Click="DeviceSerial_Click"></MenuItem>
  34. </MenuItem>
  35. </Menu>
  36. <Menu
  37. Width="auto"
  38. Background="Transparent"
  39. VerticalAlignment="Top"
  40. HorizontalAlignment="Left" Visibility="Collapsed">
  41. <MenuItem Header="Settings" Style="{StaticResource Dropdown_MenuItem}">
  42. <MenuItem Header="Theme" Width="100" Style="{StaticResource Sub_Dropdown_MenuItem}">
  43. <MenuItem Header="Light" Style="{StaticResource Dropdown_Sub_MenuItem}"></MenuItem>
  44. <MenuItem Header="Dark" Style="{StaticResource Dropdown_Sub_MenuItem}"></MenuItem>
  45. </MenuItem>
  46. <MenuItem Header="Mode" Style="{StaticResource Sub_Dropdown_MenuItem}">
  47. <MenuItem Header="View" Style="{StaticResource Dropdown_Sub_MenuItem}"></MenuItem>
  48. </MenuItem>
  49. <MenuItem Header="Cutting" Style="{StaticResource Sub_MenuItem}"></MenuItem>
  50. </MenuItem>
  51. </Menu>
  52. <Menu
  53. Width="auto"
  54. Background="Transparent"
  55. VerticalAlignment="Top"
  56. HorizontalAlignment="Left" Visibility="Collapsed">
  57. <MenuItem Header="Help" Style="{StaticResource Dropdown_MenuItem}">
  58. <MenuItem Header="Guide" Style="{StaticResource Sub_MenuItem }"></MenuItem>
  59. <MenuItem Header="Api Reference" Style="{StaticResource Sub_MenuItem }"></MenuItem>
  60. <MenuItem Header="Contact us" Style="{StaticResource Sub_MenuItem }"></MenuItem>
  61. </MenuItem>
  62. </Menu>
  63. </StackPanel>
  64. </Grid>
  65. </Grid>
  66. </UserControl>