static void RunStatePropertyChangedCallbask(DependencyObject sender, DependencyPropertyChangedEventArgs e) { WaitingProgress wp = (sender as WaitingProgress); if (wp != null) { if (wp.RunState) { wp.Start(); } else { wp.Stop(); } } }
static void TextPropertyChangedCallbask(DependencyObject sender, DependencyPropertyChangedEventArgs e) { WaitingProgress wp = sender as WaitingProgress; wp.TextShow.Text = wp.Text; }