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

            PreviewControlView.OnItemMeasured(dockItem);
        }
예제 #7
0
 private void OnDragOutCommandExecuted()
 {
     DockItem.DragOutInternal(DragOutBehavior.OriginMousePosition);
 }
예제 #8
0
 protected override void OnItemAdded(DockItem item)
 {
     AttachItem(item);
 }
예제 #9
0
 protected override void OnItemRemoved(DockItem item)
 {
     DetachItem(item);
 }
예제 #10
0
파일: Preview.cs 프로젝트: Egaros/lib
 public Preview(DropGuideAction action, DockItem dropTarget)
 {
     Action     = action;
     DropTarget = dropTarget;
 }
예제 #11
0
 internal override bool IsItemVisible(DockItem item)
 {
     return(TabViewControl != null ? item.TabViewItem.IsSelected : Host.Children.Contains(item));
 }
예제 #12
0
 internal override bool IsItemVisible(DockItem item)
 {
     return(item.TabViewItem.IsSelected);
 }
예제 #13
0
 private void DetachItem(DockItem item)
 {
     item.TabViewItem.Content = null;
     TabViewControl?.RemoveItem(item);
 }
예제 #14
0
 private void AttachItem(DockItem item)
 {
     item.TabViewItem.Content = item;
     TabViewControl?.AddItem(item);
 }
예제 #15
0
 private static Orientation GetOrientation(DockItem item)
 {
     return(Util.GetOrientation(DockLayout.GetDockSide(item)));
 }
예제 #16
0
        private FloatingDockWindow GetPreviewTarget(DockItem item)
        {
            var dropTargetWindow = item.DockControl?.CurrentDropGuide?.Compass.PlacementTarget as DockItem;

            return(dropTargetWindow?.DockState != DockItemState.Float ? null : dropTargetWindow.Root.FloatingWindow);
        }
예제 #17
0
 public DragItemEventArgs(DockItem dockItem)
 {
     DockItem = dockItem;
 }
예제 #18
0
 internal override BaseLayout GetItemTargetLayout(DockItem item, bool arrange) => DockState == DockItemState.AutoHide ? Controller?.GetLayout(DockItemState.AutoHide) : base.GetItemTargetLayout(item, arrange);
예제 #19
0
 public void BringWindowToFront(DockItem item)
 {
     SetDockItemIndex(item, IndexProvider.NewIndex);
 }
예제 #20
0
        internal override void OnActivated()
        {
            base.OnActivated();

            DockItem.SelectAndFocus();
        }