CPDFTitleBarControl.xaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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" Name="OpenFileItem" Style="{StaticResource Sub_MenuItem}" Click="OpenFileItem_Click"></MenuItem>
  25. <MenuItem Header="Save File" Style="{StaticResource Sub_MenuItem}" Click="SaveFileItem_Click" IsEnabled="{Binding CanSave, RelativeSource={RelativeSource AncestorType=UserControl}}"></MenuItem>
  26. <MenuItem Header="Save As" 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="ServiceTerms" Style="{StaticResource Sub_MenuItem}" Click="ServiceTerms_Click"></MenuItem>
  33. </MenuItem>
  34. </Menu>
  35. <Menu
  36. Width="auto"
  37. Background="Transparent"
  38. VerticalAlignment="Top"
  39. HorizontalAlignment="Left" Visibility="Collapsed">
  40. <MenuItem Header="Settings" Style="{StaticResource Dropdown_MenuItem}">
  41. <MenuItem Header="Theme" Width="100" Style="{StaticResource Sub_Dropdown_MenuItem}">
  42. <MenuItem Header="Light" Style="{StaticResource Dropdown_Sub_MenuItem}"></MenuItem>
  43. <MenuItem Header="Dark" Style="{StaticResource Dropdown_Sub_MenuItem}"></MenuItem>
  44. </MenuItem>
  45. <MenuItem Header="Mode" Style="{StaticResource Sub_Dropdown_MenuItem}">
  46. <MenuItem Header="View" Style="{StaticResource Dropdown_Sub_MenuItem}"></MenuItem>
  47. </MenuItem>
  48. <MenuItem Header="Cutting" Style="{StaticResource Sub_MenuItem}"></MenuItem>
  49. </MenuItem>
  50. </Menu>
  51. <Menu
  52. Width="auto"
  53. Background="Transparent"
  54. VerticalAlignment="Top"
  55. HorizontalAlignment="Left" Visibility="Collapsed">
  56. <MenuItem Header="Help" Style="{StaticResource Dropdown_MenuItem}">
  57. <MenuItem Header="Guide" Style="{StaticResource Sub_MenuItem }"></MenuItem>
  58. <MenuItem Header="Api Reference" Style="{StaticResource Sub_MenuItem }"></MenuItem>
  59. <MenuItem Header="Contect us" Style="{StaticResource Sub_MenuItem }"></MenuItem>
  60. </MenuItem>
  61. </Menu>
  62. </StackPanel>
  63. </Grid>
  64. </Grid>
  65. </UserControl>