ToolsBarContent.xaml.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.Windows.Controls;
  2. namespace PDF_Office.Views.Tools
  3. {
  4. /// <summary>
  5. /// Interaction logic for ToolsBarContent
  6. /// </summary>
  7. public partial class ToolsBarContent : UserControl
  8. {
  9. public ToolsBarContent()
  10. {
  11. InitializeComponent();
  12. }
  13. private void SecurityButtonMore_Click(object sender, System.Windows.RoutedEventArgs e)
  14. {
  15. SecurityMenuMore.PlacementTarget = this.SecurityButtonMore;
  16. SecurityMenuMore.IsOpen = true;
  17. }
  18. private void SecurityButtonMore_Initialized(object sender, System.EventArgs e)
  19. {
  20. this.SecurityButtonMore.ContextMenu = null;
  21. }
  22. private void CropPageMore_Click(object sender, System.Windows.RoutedEventArgs e)
  23. {
  24. CropPageMenu.PlacementTarget = this.SecurityButtonMore;
  25. CropPageMenu.IsOpen = true;
  26. }
  27. private void CropPageMore_Initialized(object sender, System.EventArgs e)
  28. {
  29. this.CropPageMenuMore.ContextMenu = null;
  30. }
  31. }
  32. }