private static void OnIconChanged(DependencyObject target, DependencyPropertyChangedEventArgs e) { if (!DesignerProperties.GetIsInDesignMode(target)) { NotificationAreaIcon control = (NotificationAreaIcon)target; control.notifyIcon.Icon = FromImageSource(control.Icon); } }
private static void OnVisibilityChanged(DependencyObject target, DependencyPropertyChangedEventArgs e) { NotificationAreaIcon control = (NotificationAreaIcon)target; if (control != null) { control.notifyIcon.Visible = control.Visibility == Visibility.Visible; } }
private static void OnTextChanged(DependencyObject target, DependencyPropertyChangedEventArgs e) { NotificationAreaIcon control = (NotificationAreaIcon)target; control.notifyIcon.Text = control.Text; }