protected override void OnPreviewMouseLeftButtonUp(MouseButtonEventArgs e)
 {
     base.OnPreviewMouseLeftButtonUp(e);
     if (MetroRibbon.IsIgnorable(e.OriginalSource as DependencyObject))
     {
         return;
     }
     this.part_Popup.IsOpen = false;
 }
Example #2
0
 protected override void OnPreviewMouseLeftButtonUp(MouseButtonEventArgs e)
 {
     base.OnPreviewMouseLeftButtonUp(e);
     if (MetroRibbon.IsIgnorable(e.OriginalSource as DependencyObject))
     {
         return;
     }
     if (this.IsPinned || e.ClickCount != 1)
     {
         this.IsMinimized = false;
     }
     else
     {
         this.IsMinimized = this._isSelectedTabClicked ? !this.IsMinimized : !this._isTabHeaderClicked;
     }
 }