Пример #1
0
        private static object OnMessageSet(DependencyObject d, object baseValue)
        {
            Toasty toast = d as Toasty;

            if (toast != null)
            {
                toast.Show();
            }

            return(baseValue);
        }
Пример #2
0
        private static void OnMessageChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Toasty toast = d as Toasty;

            if (toast == null)
            {
                return;
            }

            toast.Show();
        }