private static object OnMessageSet(DependencyObject d, object baseValue) { Toasty toast = d as Toasty; if (toast != null) { toast.Show(); } return(baseValue); }
private static void OnMessageChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Toasty toast = d as Toasty; if (toast == null) { return; } toast.Show(); }