public static void OnIsAutoHideEnabledPropertyChanged(object sender, DependencyPropertyChangedEventArgs args) { VisiblityFadeChanger source = (VisiblityFadeChanger)sender; Debug.WriteLine($"{nameof(VisiblityFadeChanger)}: 自動非表示変更:{source.IsAutoHideEnabled}"); source.ChangeVisible(); }
public static void OnDuratiRaisePropertyChanged(object sender, DependencyPropertyChangedEventArgs args) { VisiblityFadeChanger source = (VisiblityFadeChanger)sender; var duration = source.Duration; source._CurrentAnimation?.SetDuration(duration); }
public static void OnDelayPropertyChanged(object sender, DependencyPropertyChangedEventArgs args) { VisiblityFadeChanger source = (VisiblityFadeChanger)sender; var delay = source.Delay; source._FadeInAnimation.SetDelay(delay); source._FadeOutAnimation.SetDelay(delay); }
public static void OnIsVisiblePropertyChanged(object sender, DependencyPropertyChangedEventArgs args) { VisiblityFadeChanger source = (VisiblityFadeChanger)sender; if (source.IsVisible) { source.Show(); } else { source.Hide(); } }
public static void OnIsVisiblePropertyChanged(object sender, DependencyPropertyChangedEventArgs args) { VisiblityFadeChanger source = (VisiblityFadeChanger)sender; source.ChangeVisible(); }
public static void OnDelayPropertyChanged(object sender, DependencyPropertyChangedEventArgs args) { VisiblityFadeChanger source = (VisiblityFadeChanger)sender; source.ResetAutoHideThrottling(); }