public static void AddWindow(IRootVisual w) { if (CurrentApp is null) { Dispatcher.CurrentDispatcher.BeginInvoke(() => AddWindow(w), OperationPriority.Normal); } CurrentApp._windows.Add(w); }
protected void MarkRootDirty(Visual target, Rectangle rectangle) { IRootVisual root = default; target.TraverseTop <Visual>(current => { root = current as IRootVisual; return(root is not null); }); root?.MarkDirtyArea(rectangle); }