Example #1
0
 private static void OnBrowserContextMenu(object sender, HtmlEventArgs e)
 {
     if (SuppressBrowserContextMenu)
     {
         e.PreventDefault();
     }
     else
     {
         PopupManager.CloseActivePopup();
     }
 }
Example #2
0
 private void OnOwnerMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     PopupManager.CloseActivePopup(); //try to close the active one, but never handle the left click.
 }
Example #3
0
 private void OnOwnerMouseRightButtonDown(object sender, MouseButtonEventArgs e)
 {
     PopupManager.CloseActivePopup();
     e.Handled = true;
 }