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

            default:
                return(false);
            }
        }