public void Add( View child, DockRegion position) { if (null == child) { throw new ArgumentNullException(nameof(child)); } DockRegionProperty.SetValue(child, position); this.Add(child); }
public void Replace( int index, View child, DockRegion position) { if (null == child) { throw new ArgumentNullException(nameof(child)); } DockRegionProperty.SetValue(child, position); this.Replace(index, child); }