コード例 #1
0
        /// <summary>
        /// A static helper method to raise the BalloonShowing event on a target element.
        /// </summary>
        /// <param name="target">UIElement or ContentElement on which to raise the event</param>
        /// <param name="source">The <see cref="TaskbarIcon"/> instance that manages the balloon.</param>
        internal static RoutedEventArgs RaiseBalloonShowingEvent(DependencyObject target, TaskbarIcon source)
        {
            if (target == null) return null;

              RoutedEventArgs args = new RoutedEventArgs(BalloonShowingEvent, source);
              RoutedEventHelper.RaiseEvent(target, args);
              return args;
        }
コード例 #2
0
 /// <summary>
 /// Sets the ParentTaskbarIcon property.  This dependency property 
 /// indicates ....
 /// </summary>
 public static void SetParentTaskbarIcon(DependencyObject d, TaskbarIcon value)
 {
     d.SetValue(ParentTaskbarIconProperty, value);
 }