private void OnRefresh(object sender, HtmlRefreshEventArgs e) { if (InvokeRequired) Invoke(new MethodInvoker(() => OnRefresh(e))); else OnRefresh(e); }
private void OnRefresh(object sender, HtmlRefreshEventArgs e) { if (CheckAccess()) OnRefresh(e); else Dispatcher.Invoke(new Action<HtmlRefreshEventArgs>(OnRefresh), e); }
/// <summary> /// Handle html renderer invalidate and re-layout as requested. /// </summary> protected virtual void OnRefresh(HtmlRefreshEventArgs e) { if (e.Layout) PerformLayout(); Invalidate(); }
/// <summary> /// Handle html renderer invalidate and re-layout as requested. /// </summary> protected virtual void OnRefresh(HtmlRefreshEventArgs e) { if (e.Layout) InvalidateMeasure(); InvalidateVisual(); }