Example #1
0
 private static void OnIconChanged(DependencyObject target, DependencyPropertyChangedEventArgs e)
 {
     if (!DesignerProperties.GetIsInDesignMode(target))
     {
         NotificationAreaIcon control = (NotificationAreaIcon)target;
         control.notifyIcon.Icon = FromImageSource(control.Icon);
     }
 }
Example #2
0
        private static void OnVisibilityChanged(DependencyObject target, DependencyPropertyChangedEventArgs e)
        {
            NotificationAreaIcon control = (NotificationAreaIcon)target;

            if (control != null)
            {
                control.notifyIcon.Visible = control.Visibility == Visibility.Visible;
            }
        }
Example #3
0
        private static void OnTextChanged(DependencyObject target, DependencyPropertyChangedEventArgs e)
        {
            NotificationAreaIcon control = (NotificationAreaIcon)target;

            control.notifyIcon.Text = control.Text;
        }