protected override void OnMouseUp(MouseUpEvent e)
 {
     switch (e.Button)
     {
     case MouseButton.Middle:
         CloseButton.Click();
         break;
     }
 }
Example #2
0
        protected override bool OnMouseUp(MouseUpEvent e)
        {
            switch (e.Button)
            {
            case MouseButton.Middle:
                CloseButton.Click();
                return(true);

            default:
                return(false);
            }
        }