예제 #1
0
        private static void OnTextChanged(DependencyObject target,
                                          DependencyPropertyChangedEventArgs args)
        {
            SparkleNotifyIcon control = (SparkleNotifyIcon)target;

            control.notify_icon.Text = control.Text;
        }
예제 #2
0
        private void OnVisibilityChanged(DependencyObject target,
                                         DependencyPropertyChangedEventArgs args)
        {
            SparkleNotifyIcon control = (SparkleNotifyIcon)target;

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