Generic.cs 714 B

12345678910111213141516171819202122232425262728
  1. using InABox.DynamicGrid;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Input;
  10. namespace InABox.WPF
  11. {
  12. public partial class Generic : ResourceDictionary
  13. {
  14. public Generic()
  15. {
  16. //InitializeComponent();
  17. }
  18. private void Panel_OnPreviewMouseRightButtonUp(object sender, MouseButtonEventArgs e)
  19. {
  20. var parent = (sender as FrameworkElement)?.TemplatedParent as DynamicTabItem;
  21. if (parent == null)
  22. return;
  23. parent.ContextMenuCommand.Execute(null);
  24. }
  25. }
  26. }