Exemple #1
0
 public DropItemEventArgs(DockItem sourceDockItem, DockItem targetDockItem, DropGuideAction action)
 {
     SourceDockItem = sourceDockItem;
     TargetDockItem = targetDockItem;
     Action         = action;
 }
Exemple #2
0
 private DockItemLayoutMentorService(DockItem dockItem)
 {
     DockItem = dockItem;
     Layout   = new LayoutSettings();
 }
Exemple #3
0
 public static DockItemLayoutMentorService FromItem(DockItem itemGroup)
 {
     return(itemGroup.GetValueOrCreate(ServiceProperty, () => new DockItemLayoutMentorService(itemGroup)));
 }
Exemple #4
0
 private void OnItemDockSizeChanged(DockItem item)
 {
     DockLayoutView?.OnItemDockSizeChanged(item);
 }
Exemple #5
0
 public DockItemLayout(DockItem item)
 {
     ItemName  = item.Name;
     DockState = item.DockState;
 }
Exemple #6
0
        internal override void OnItemMeasured(DockItem dockItem)
        {
            base.OnItemMeasured(dockItem);

            PreviewControlView.OnItemMeasured(dockItem);
        }
Exemple #7
0
 private void OnDragOutCommandExecuted()
 {
     DockItem.DragOutInternal(DragOutBehavior.OriginMousePosition);
 }
Exemple #8
0
 protected override void OnItemAdded(DockItem item)
 {
     AttachItem(item);
 }
Exemple #9
0
 protected override void OnItemRemoved(DockItem item)
 {
     DetachItem(item);
 }
Exemple #10
0
 public Preview(DropGuideAction action, DockItem dropTarget)
 {
     Action     = action;
     DropTarget = dropTarget;
 }
Exemple #11
0
 internal override bool IsItemVisible(DockItem item)
 {
     return(TabViewControl != null ? item.TabViewItem.IsSelected : Host.Children.Contains(item));
 }
Exemple #12
0
 internal override bool IsItemVisible(DockItem item)
 {
     return(item.TabViewItem.IsSelected);
 }
Exemple #13
0
 private void DetachItem(DockItem item)
 {
     item.TabViewItem.Content = null;
     TabViewControl?.RemoveItem(item);
 }
Exemple #14
0
 private void AttachItem(DockItem item)
 {
     item.TabViewItem.Content = item;
     TabViewControl?.AddItem(item);
 }
Exemple #15
0
 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);
        }
Exemple #17
0
 public DragItemEventArgs(DockItem dockItem)
 {
     DockItem = dockItem;
 }
Exemple #18
0
 internal override BaseLayout GetItemTargetLayout(DockItem item, bool arrange) => DockState == DockItemState.AutoHide ? Controller?.GetLayout(DockItemState.AutoHide) : base.GetItemTargetLayout(item, arrange);
Exemple #19
0
 public void BringWindowToFront(DockItem item)
 {
     SetDockItemIndex(item, IndexProvider.NewIndex);
 }
Exemple #20
0
        internal override void OnActivated()
        {
            base.OnActivated();

            DockItem.SelectAndFocus();
        }