示例#1
0
        private static void OnTextChanged(DependencyObject target, DependencyPropertyChangedEventArgs args)
        {
            NotifyIcon control = (NotifyIcon)target;

            control.Notification.Text = control.Text;
        }
示例#2
0
        private void OnVisibilityChanged(DependencyObject target, DependencyPropertyChangedEventArgs args)
        {
            NotifyIcon control = (NotifyIcon)target;

            control.Notification.Visible = (control.Visibility == Visibility.Visible);
        }