コード例 #1
0
        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();
            }
        }
コード例 #2
0
        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();
            }
        }