public BrushContext(VideoBrush parentBrush) { _parentBrush = parentBrush; _imageContext = new ImageContext { OnRefresh = OnImagecontextRefresh, ExtraParameters = new Dictionary <string, object>() }; }
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager) { Detach(); base.DeepCopy(source, copyManager); VideoBrush b = (VideoBrush)source; Stream = b.Stream; Geometry = b.Geometry; BorderColor = b.BorderColor; _refresh = true; Attach(); }
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager) { Detach(); base.DeepCopy(source, copyManager); VideoBrush b = (VideoBrush)source; Stream = b.Stream; Geometry = b.Geometry; BorderColor = b.BorderColor; foreach (var brushContext in _brushContexts) { brushContext.Refresh(); } Attach(); }