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);
     }
 }
Example #3
0
        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;
 }
Example #5
0
 protected override bool ReplaceItemInternal(DockingBase oldItem, DockingBase newItem)
 {
     //TODO decide
     //throw new NotSupportedException();
     return false;
 }
Example #6
0
 protected override bool RemoveInternal(DockingBase item)
 {
     //TODO decide
     //throw new NotSupportedException();
     return false;
 }
Example #7
0
        protected override bool IsChild(DockingBase item)
        {
            if (item == null)
                return false;

            return Items.Any(cur => cur.View == item);
        }
Example #8
0
 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)
 {
 }