Example #1
0
 internal void RemoveAdorner(CanvasAdorner adorner)
 {
     if (adorner == null) throw new ArgumentNullException(nameof(adorner));
     if (adorner.ParentCanvas != this) throw new InvalidOperationException("Invalid ParentCanvas.");
     adorner.SetCanvas(null);
     adornerCanvas.Children.Remove(adorner);
 }
Example #2
0
 internal void AddAdorner(CanvasAdorner adorner)
 {
     if (adorner == null) throw new ArgumentNullException(nameof(adorner));
     adorner.SetCanvas(this);
     adornerCanvas.Children.Add(adorner);
 }