private static void WaitTextPropertyCallback( DependencyObject obj, DependencyPropertyChangedEventArgs e) { WaitProgress wp = obj as WaitProgress; wp.WaitTextBlock.Text = (string)e.NewValue; wp.WaitTextBlock.Visibility = Visibility.Visible; }
private static void WaitProgressColorPropertyCallback( DependencyObject obj, DependencyPropertyChangedEventArgs e) { WaitProgress wp = obj as WaitProgress; wp.Ellipse1.Fill = new SolidColorBrush((Color)e.NewValue); wp.Ellipse2.Fill = new SolidColorBrush((Color)e.NewValue); wp.Ellipse3.Fill = new SolidColorBrush((Color)e.NewValue); wp.Ellipse4.Fill = new SolidColorBrush((Color)e.NewValue); wp.Ellipse5.Fill = new SolidColorBrush((Color)e.NewValue); wp.Ellipse6.Fill = new SolidColorBrush((Color)e.NewValue); wp.Ellipse7.Fill = new SolidColorBrush((Color)e.NewValue); wp.Ellipse8.Fill = new SolidColorBrush((Color)e.NewValue); }