Exemplo n.º 1
0
 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);
        }
Exemplo n.º 3
0
        public PopUpViewModel(WPFRegularPopUp view,
                              string title, DataTemplate content, WPFPopUpButtons buttons)
        {
            Title   = title;
            Content = content;

            ___View = view;

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

            ___View = view;

            setButtonsVisibility(buttons);
        }