// Update property private static void OnPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs eventArgs) { ProgressArc arc = sender as ProgressArc; arc.calculateProgress(); }
// Update progress private static void OnPercentageChanged(DependencyObject sender, DependencyPropertyChangedEventArgs eventArgs) { ProgressArc arc = sender as ProgressArc; arc.Angle = (arc.Percentage / 100.0) * 360.0; }