protected DockItemGroup(DockItemState dockState, BaseLayout layout) : base(dockState) { Items = new DockItemCollection(OnItemAdded, OnItemRemoved, true); ActualItems = new Dictionary <DockItem, DockItem>(); Layout = layout; Layout.SetBinding(BaseLayout.SelectedItemProperty, new Binding { Path = new PropertyPath(SelectedItemProperty), Mode = BindingMode.TwoWay, Source = this }); }
internal SplitDockItemGroup(DockItemState dockState) : base(dockState) { this.OverrideStyleKey <SplitDockItemGroup>(); Layout.SetBinding(SplitLayout.OrientationProperty, new Binding { Source = this, Path = new PropertyPath(OrientationProperty), Mode = BindingMode.TwoWay }); }
protected DockItem(DockItemState dockState) { this.OverrideStyleKey <DockItem>(); _dockState = dockState; foreach (var layoutProperty in FullLayout.LayoutProperties) { this.AddValueChanged(layoutProperty, OnLayoutPropertyChanged); } DragOutBehavior = new DragOutBehavior { DragOutCommand = new RelayCommand(OnDragOutCommandExecuted) }; this.BindProperties(NameInternalProperty, this, NameProperty, BindingMode.TwoWay); LayoutUpdated += OnLayoutUpdated; }
public DockItemStateChangingEventArgs(DockItemState newDockState) { NewDockState = newDockState; }
protected override DockItem CreatePreviewItem(DockItemState dockState) { return(new TabDockItemGroup(dockState)); }
internal TabDockItemGroup(DockItemState dockState) : base(dockState) { this.OverrideStyleKey <TabDockItemGroup>(); }
public DockItemStateChangedEventArgs(DockItemState oldDockState) { OldDockState = oldDockState; }
protected override bool IsDockStateAllowed(DockItemState state) { return(state == DockItemState.Float || state == DockItemState.Document || state == DockItemState.Hidden); }
protected override DockItem CreatePreviewItem(DockItemState dockState) { return(new DocumentDockItem(dockState)); }
internal DocumentDockItem(DockItemState dockState) : base(dockState) { }
internal DocumentDockItemGroup(DockItemState dockState) : base(dockState) { this.OverrideStyleKey <DocumentDockItemGroup>(); }