19 using System.Collections.Generic;
30 public virtual bool Suppress {
get;
set; }
34 #region DependencyProperties 36 public string SuppressMessageText
38 get {
return (
string)GetValue(SuppressMessageTextProperty); }
41 SetValue(SuppressMessageTextProperty, value);
47 #region Declarations of dependency properties 49 public static readonly DependencyProperty SuppressMessageTextProperty = DependencyProperty.Register(
56 protected override void Invoke(
object parameter)
60 Logger.Info(
"Invoke: Notification is not suppressed");
61 base.Invoke(parameter);
65 Logger.Info(
"Invoke: Notification is suppressed");
78 private static NLog.Logger Logger {
get {
return _logger.Value; } }
80 private static readonly Lazy<
NLog.Logger> _logger =
new Lazy<
NLog.Logger>(() =>
NLog.LogManager.GetCurrentClassLogger());
override System.Windows.Window CreateView()
Returns a view that can bind to expected message contents.
Interaction logic for SuppressibleNotificationView.xaml
Opens a generic WPF dialog window that displays a message and has a single OK button.