private static void OnSpeedRatioChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { AduLoading AduLoading = d as AduLoading; if (AduLoading.PART_Root == null || !AduLoading.IsActived) { return; } AduLoading.SetSpeedRatio(AduLoading.PART_Root, AduLoading.SpeedRatio); }
private static void OnIsActivedChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { AduLoading AduLoading = d as AduLoading; if (AduLoading.PART_Root == null) { return; } VisualStateManager.GoToElementState(AduLoading.PART_Root, (bool)e.NewValue ? "Active" : "Inactive", true); }