예제 #1
0
        public static void OnIsAutoHideEnabledPropertyChanged(object sender, DependencyPropertyChangedEventArgs args)
        {
            VisiblityFadeChanger source = (VisiblityFadeChanger)sender;

            Debug.WriteLine($"{nameof(VisiblityFadeChanger)}: 自動非表示変更:{source.IsAutoHideEnabled}");
            source.ChangeVisible();
        }
예제 #2
0
        public static void OnDuratiRaisePropertyChanged(object sender, DependencyPropertyChangedEventArgs args)
        {
            VisiblityFadeChanger source = (VisiblityFadeChanger)sender;

            var duration = source.Duration;

            source._CurrentAnimation?.SetDuration(duration);
        }
예제 #3
0
        public static void OnDelayPropertyChanged(object sender, DependencyPropertyChangedEventArgs args)
        {
            VisiblityFadeChanger source = (VisiblityFadeChanger)sender;

            var delay = source.Delay;

            source._FadeInAnimation.SetDelay(delay);
            source._FadeOutAnimation.SetDelay(delay);
        }
예제 #4
0
        public static void OnIsVisiblePropertyChanged(object sender, DependencyPropertyChangedEventArgs args)
        {
            VisiblityFadeChanger source = (VisiblityFadeChanger)sender;

            if (source.IsVisible)
            {
                source.Show();
            }
            else
            {
                source.Hide();
            }
        }
예제 #5
0
        public static void OnIsVisiblePropertyChanged(object sender, DependencyPropertyChangedEventArgs args)
        {
            VisiblityFadeChanger source = (VisiblityFadeChanger)sender;

            source.ChangeVisible();
        }
예제 #6
0
        public static void OnDelayPropertyChanged(object sender, DependencyPropertyChangedEventArgs args)
        {
            VisiblityFadeChanger source = (VisiblityFadeChanger)sender;

            source.ResetAutoHideThrottling();
        }