Exemple #1
0
        public ContextMenu()
        {
            DefaultStyleKey = typeof(ContextMenu);
            AutoClose       = MenuManager.AutoCloseMenus;

            PopupManager.RegisterSingletonPopup(this);
        }
Exemple #2
0
 public static IPopup AsSingleton(this IPopup popup)
 {
     PopupManager.RegisterSingletonPopup(popup);
     return(popup);
 }