예제 #1
0
 public static void Hide(this UIElement element, int duration, Action <UIElement> callback)
 {
     UIElementExtensions.SetOpacity(element, duration, 0.0d, (e) =>
     {
         e.Visibility = Visibility.Collapsed;
         if (callback != null)
         {
             callback(e);
         }
     });
 }
예제 #2
0
 public static void Show(this UIElement element, int duration, Action <UIElement> callback)
 {
     element.Visibility = Visibility.Visible;
     UIElementExtensions.SetOpacity(element, duration, 1.0d, (e) =>
     {
         if (callback != null)
         {
             callback(e);
         }
     });
 }
예제 #3
0
 public static void Animate(this UIElement element, string property, int duration, double value)
 {
     UIElementExtensions.Animate(element, property, duration, value, null);
 }
예제 #4
0
 private static void SetOpacity(this UIElement element, int duration, double opacity, Action <UIElement> callback)
 {
     UIElementExtensions.Animate(element, "Opacity", duration, opacity, callback);
 }
예제 #5
0
 public static void Hide(this UIElement element, int duration)
 {
     UIElementExtensions.Hide(element, duration, null);
 }
예제 #6
0
 public static void Hide(this UIElement element)
 {
     UIElementExtensions.Hide(element, 0, null);
 }
예제 #7
0
 public static void Show(this UIElement element, int duration)
 {
     UIElementExtensions.Show(element, duration, null);
 }
예제 #8
0
 public static void Show(this UIElement element)
 {
     UIElementExtensions.Show(element, 0, null);
 }