private static void OnSlideInOutBottomPropertyChange(DependencyObject d, DependencyPropertyChangedEventArgs e) { BaseUserControl control = d as BaseUserControl; if ((bool)e.NewValue == true) { Task task = control.SlideAndFadeInFromBottomAsync(); } else { Task task = control.SlideAndFadeOutFromBottomAsync(); } }
private static void OnFadeInOutPropertyChange(DependencyObject d, DependencyPropertyChangedEventArgs e) { BaseUserControl control = d as BaseUserControl; if ((bool)e.NewValue == true) { Task task = control.FadeInAsync(); } else { Task task = control.FadeOutAsync(); } }