public static void HideAdorners() { if (Application.Current != null) { Application.Current.Dispatcher.Invoke((Action) delegate { try { if (AdornedElement != null) { OverlayAdornerHelper.RemoveAllAdorners(AdornedElement); Helpers.DoEvents(); } } catch { } }); } }
public AutomaticAdornerHelper(Control btn, int seconds) { m_Adorner = new AutomaticAdorner(btn, seconds); m_Helper = new OverlayAdornerHelper(btn, m_Adorner); }
void _update_Processed(object sender, EventArgs e) { dcMovies.IsEnabled = true; OverlayAdornerHelper.RemoveAllAdorners(this.DockManager); //UpdateButton.IsEnabled = true; }