protected void PromoteItem(DockingBase child) { //Disconnect the child RemoveInternal(child); this.RaiseFunctionalEvent(new FunctionalDockingBaseEventArgs(ItemPromotedEvent, child)); }
public override void OnDockingDescendentClosed(DockingBase item) { if (IsChild(item)) { //We have to remove the item ourselves, the item can't do it RemoveInternal(item); OnDockingChildClosed(item); } }
public ViewGroup(DockingBase dockingOwner, DockState visibleOwnerDockState, DockState validDockStates) { if (dockingOwner == null) throw new ArgumentNullException("dockingOwner", "dockingOwner is null."); _validDockStates = validDockStates; DockingOwner = dockingOwner; DockState = visibleOwnerDockState; _viewsInternal = new ObservableCollection<View>(); Views = new ReadOnlyObservableCollection<View>(_viewsInternal); _viewsInternal.CollectionChanged += OnViewsChangedInternal; }
public FunctionalDockingBaseEventArgs(FunctionalEvent functionalEvent, DockingBase target) : base(functionalEvent) { Target = target; }
protected override bool ReplaceItemInternal(DockingBase oldItem, DockingBase newItem) { //TODO decide //throw new NotSupportedException(); return false; }
protected override bool RemoveInternal(DockingBase item) { //TODO decide //throw new NotSupportedException(); return false; }
protected override bool IsChild(DockingBase item) { if (item == null) return false; return Items.Any(cur => cur.View == item); }
public virtual void OnDockingDescendentClosed(DockingBase item) { }
protected abstract bool ReplaceItemInternal(DockingBase oldItem, DockingBase newItem);
protected abstract bool RemoveInternal(DockingBase item);
protected abstract bool IsChild(DockingBase item);
public bool ReplaceItem(DockingBase oldItem, DockingBase newItem) { return ReplaceItemInternal(oldItem, newItem); }
public bool Remove(DockingBase item) { return RemoveInternal(item); }
public virtual void OnDockingChildClosed(DockingBase child) { }