public DropItemEventArgs(DockItem sourceDockItem, DockItem targetDockItem, DropGuideAction action) { SourceDockItem = sourceDockItem; TargetDockItem = targetDockItem; Action = action; }
private DockItemLayoutMentorService(DockItem dockItem) { DockItem = dockItem; Layout = new LayoutSettings(); }
public static DockItemLayoutMentorService FromItem(DockItem itemGroup) { return(itemGroup.GetValueOrCreate(ServiceProperty, () => new DockItemLayoutMentorService(itemGroup))); }
private void OnItemDockSizeChanged(DockItem item) { DockLayoutView?.OnItemDockSizeChanged(item); }
public DockItemLayout(DockItem item) { ItemName = item.Name; DockState = item.DockState; }
internal override void OnItemMeasured(DockItem dockItem) { base.OnItemMeasured(dockItem); PreviewControlView.OnItemMeasured(dockItem); }
private void OnDragOutCommandExecuted() { DockItem.DragOutInternal(DragOutBehavior.OriginMousePosition); }
protected override void OnItemAdded(DockItem item) { AttachItem(item); }
protected override void OnItemRemoved(DockItem item) { DetachItem(item); }
public Preview(DropGuideAction action, DockItem dropTarget) { Action = action; DropTarget = dropTarget; }
internal override bool IsItemVisible(DockItem item) { return(TabViewControl != null ? item.TabViewItem.IsSelected : Host.Children.Contains(item)); }
internal override bool IsItemVisible(DockItem item) { return(item.TabViewItem.IsSelected); }
private void DetachItem(DockItem item) { item.TabViewItem.Content = null; TabViewControl?.RemoveItem(item); }
private void AttachItem(DockItem item) { item.TabViewItem.Content = item; TabViewControl?.AddItem(item); }
private static Orientation GetOrientation(DockItem item) { return(Util.GetOrientation(DockLayout.GetDockSide(item))); }
private FloatingDockWindow GetPreviewTarget(DockItem item) { var dropTargetWindow = item.DockControl?.CurrentDropGuide?.Compass.PlacementTarget as DockItem; return(dropTargetWindow?.DockState != DockItemState.Float ? null : dropTargetWindow.Root.FloatingWindow); }
public DragItemEventArgs(DockItem dockItem) { DockItem = dockItem; }
internal override BaseLayout GetItemTargetLayout(DockItem item, bool arrange) => DockState == DockItemState.AutoHide ? Controller?.GetLayout(DockItemState.AutoHide) : base.GetItemTargetLayout(item, arrange);
public void BringWindowToFront(DockItem item) { SetDockItemIndex(item, IndexProvider.NewIndex); }
internal override void OnActivated() { base.OnActivated(); DockItem.SelectAndFocus(); }