Example #1
0
        private static void IsActiveChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            CirclePointRingLoading circlePointRingLoading = sender as CirclePointRingLoading;
            bool flag = circlePointRingLoading == null;

            if (!flag)
            {
                circlePointRingLoading.UpdateActiveState();
            }
        }
Example #2
0
        private static void BindableWidthCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            CirclePointRingLoading circlePointRingLoading = dependencyObject as CirclePointRingLoading;
            bool flag = circlePointRingLoading == null;

            if (!flag)
            {
                circlePointRingLoading.SetEllipseDiameter((double)e.NewValue);
                circlePointRingLoading.SetEllipseOffset((double)e.NewValue);
                circlePointRingLoading.SetMaxSideLength((double)e.NewValue);
            }
        }
Example #3
0
 static CirclePointRingLoading()
 {
     FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(CirclePointRingLoading), new FrameworkPropertyMetadata(typeof(CirclePointRingLoading)));
     UIElement.VisibilityProperty.OverrideMetadata(typeof(CirclePointRingLoading), new FrameworkPropertyMetadata(delegate(DependencyObject ringObject, DependencyPropertyChangedEventArgs e)
     {
         bool flag = e.NewValue != e.OldValue;
         if (flag)
         {
             CirclePointRingLoading circlePointRingLoading = (CirclePointRingLoading)ringObject;
             bool flag2 = (Visibility)e.NewValue > Visibility.Visible;
             if (flag2)
             {
                 circlePointRingLoading.SetCurrentValue(CirclePointRingLoading.IsActiveProperty, false);
             }
             else
             {
                 circlePointRingLoading.IsActive = true;
             }
         }
     }));
 }