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); }
public InfoPopup(string desc, string message) { InitializeComponent(); vm = new InfoPopupViewModel(desc, message); BindingContext = vm; }
/// <summary> /// Create a new instance of this class /// </summary> public InfoPopup() { InitializeComponent(); DataContext = new InfoPopupViewModel(); }