protected override void OnPreviewMouseLeftButtonUp(MouseButtonEventArgs e)
 {
     base.OnPreviewMouseLeftButtonUp(e);
     if (MetroRibbon.IsIgnorable(e.OriginalSource as DependencyObject))
     {
         return;
     }
     this.part_Popup.IsOpen = false;
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 3
0
 void IComponentConnector.Connect(int connectionId, object target)
 {
     if (connectionId != 1)
     {
         if (connectionId == 2)
         {
             this.BrowsePicons = (MetroFlatButton)target;
         }
         else
         {
             this._contentLoaded = true;
         }
     }
     else
     {
         this.Ribbon = (MetroRibbon)target;
     }
 }