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