Beispiel #1
0
        private static void OnMaxChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FlatProgressBar owner = d as FlatProgressBar;

            if ((double)e.NewValue < owner.Min)
            {
                owner.Max = (double)e.OldValue;
            }
            else
            {
                owner.DrawBar();
            }
        }
Beispiel #2
0
        private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FlatProgressBar owner = d as FlatProgressBar;

            owner.DrawBar();
        }