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