Esempio n. 1
0
        // Update property
        private static void OnPropertyChanged(DependencyObject sender,
                                              DependencyPropertyChangedEventArgs eventArgs)
        {
            ProgressArc arc = sender as ProgressArc;

            arc.calculateProgress();
        }
Esempio n. 2
0
        // Update progress
        private static void OnPercentageChanged(DependencyObject sender,
                                                DependencyPropertyChangedEventArgs eventArgs)
        {
            ProgressArc arc = sender as ProgressArc;

            arc.Angle = (arc.Percentage / 100.0) * 360.0;
        }