void OnDefaultCaseViewMouseDown(object sender, MouseButtonEventArgs e)
 {
     if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount == 2)
     {
         SwitchTryCatchDesignerHelper.MakeRootDesigner(this);
         e.Handled = true;
     }
     else if (e.LeftButton == MouseButtonState.Pressed)
     {
         ExpandDefaultView();
         Keyboard.Focus((IInputElement)sender);
     }
     else if (e.RightButton == MouseButtonState.Pressed)
     {
         if (this.IsDefaultCaseViewExpanded())
         {
             Keyboard.Focus((IInputElement)sender);
         }
         e.Handled = true;
     }
 }
 protected override void OnMouseDown(MouseButtonEventArgs e)
 {
     if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount == 2)
     {
         SwitchTryCatchDesignerHelper.MakeParentRootDesigner <SwitchDesigner>(this);
         e.Handled = true;
     }
     else if (e.LeftButton == MouseButtonState.Pressed)
     {
         Keyboard.Focus(this);
         e.Handled = true;
         this.Designer.ShouldStillAllowRubberBandEvenIfMouseLeftButtonDownIsHandled = true;
     }
     else if (e.RightButton == MouseButtonState.Pressed)
     {
         if (this.ShowExpanded)
         {
             Keyboard.Focus(this);
         }
         e.Handled = true;
     }
 }