コード例 #1
0
        public void ShowInfo(string _message, string _windowTitle)
        {
            Debug.Assert(!string.IsNullOrWhiteSpace(_message));
            Debug.Assert(_windowTitle != null);

            InfoPopupViewModel info = new InfoPopupViewModel(_message);

            Show(info, PopupBehavior.BLOCKING, ResizeMode.NoResize, _windowTitle);
        }
コード例 #2
0
 public InfoPopup(string desc, string message)
 {
     InitializeComponent();
     vm             = new InfoPopupViewModel(desc, message);
     BindingContext = vm;
 }
コード例 #3
0
 /// <summary>
 /// Create a new instance of this class
 /// </summary>
 public InfoPopup()
 {
     InitializeComponent();
     DataContext = new InfoPopupViewModel();
 }