예제 #1
0
 /// <summary>
 /// Hides the drop down.
 /// </summary>
 public void HideDropDown()
 {
     if (dropDown != null)
     {
         dropDown.Hide();
         if (DropDownClosed != null)
         {
             DropDownClosed(this, EventArgs.Empty);
         }
     }
 }
예제 #2
0
 private bool InternalProcessResizing(ref Message m, bool contentControl)
 {
     if (m.Msg == NativeMethods.WM_NCACTIVATE && m.WParam != IntPtr.Zero && _childPopup != null && _childPopup.Visible)
     {
         _childPopup.Hide();
     }
     if (!Resizable && !NonInteractive)
     {
         return(false);
     }
     if (m.Msg == NativeMethods.WM_NCHITTEST)
     {
         return(OnNcHitTest(ref m, contentControl));
     }
     else if (m.Msg == NativeMethods.WM_GETMINMAXINFO)
     {
         return(OnGetMinMaxInfo(ref m));
     }
     return(false);
 }