public static WPFPopUpResult Show(string title, DataTemplate content, WPFPopUpButtons buttons)
 {
     ___PopUp = new WPFRegularPopUp();
     PopUpViewModel __ViewModel = new PopUpViewModel(___PopUp, title, content,buttons);
     ___PopUp.DataContext = __ViewModel;
     ___PopUp.ShowDialog();
     return ___PopUp.Result;
 }
        public static WPFPopUpResult Show(string title, DataTemplate content, WPFPopUpButtons buttons)
        {
            ___PopUp = new WPFRegularPopUp();
            PopUpViewModel __ViewModel = new PopUpViewModel(___PopUp, title, content, buttons);

            ___PopUp.DataContext = __ViewModel;
            ___PopUp.ShowDialog();
            return(___PopUp.Result);
        }
Esempio n. 3
0
        public PopUpViewModel(WPFRegularPopUp view,
                              string title, DataTemplate content, WPFPopUpButtons buttons)
        {
            Title   = title;
            Content = content;

            ___View = view;

            setButtonsVisibility(buttons);
        }
Esempio n. 4
0
        public PopUpViewModel(WPFRegularPopUp view,
            string title, DataTemplate content, WPFPopUpButtons buttons)
        {
            Title = title;
            Content = content;

            ___View = view;

            setButtonsVisibility(buttons);
        }