private static void OnPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { CircularGauge circle = sender as CircularGauge; circle.RenderArc(); }
private static void OnPercentageChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { CircularGauge circle = sender as CircularGauge; circle.Angle = (circle.Percentage * 360) / 100; }