コード例 #1
0
        private void ItemDragCompleted(object sender, DragablzDragCompletedEventArgs eventArgs)
        {
            var dragablzItems = DragablzItems( )
                                .Select(i =>
            {
                i.IsDragging        = false;
                i.IsSiblingDragging = false;
                return(i);
            })
                                .ToList( );

            if (ItemsOrganiser != null)
            {
                var bounds = new Size(ActualWidth, ActualHeight);
                ItemsOrganiser.OrganiseOnDragCompleted(this, bounds,
                                                       dragablzItems.Except(eventArgs.DragablzItem),
                                                       eventArgs.DragablzItem);
            }

            eventArgs.Handled = true;

            //wowsers
            Dispatcher.BeginInvoke(new Action(InvalidateMeasure));
            Dispatcher.BeginInvoke(new Action(InvalidateMeasure), DispatcherPriority.Loaded);
        }
コード例 #2
0
        private void ItemDragCompleted(object sender, DragablzDragCompletedEventArgs eventArgs)
        {
            var dragablzItems = DragablzItems()
                                .Select(i =>
            {
                i.IsDragging        = false;
                i.IsSiblingDragging = false;
                return(i);
            })
                                .ToList();

            if (ItemsOrganiser != null)
            {
                var bounds = new Size(ActualWidth, ActualHeight);
                ItemsOrganiser.OrganiseOnDragCompleted(bounds,
                                                       dragablzItems.Except(new[] { eventArgs.DragablzItem }),
                                                       eventArgs.DragablzItem);
            }

            eventArgs.Handled = true;

            if (ItemsOrganiser == null)
            {
                return;
            }
            var measure = ItemsOrganiser.Measure(dragablzItems);

            ItemsPresenterWidth  = measure.Width;
            ItemsPresenterHeight = measure.Height;
        }
コード例 #3
0
ファイル: TabablzControl.cs プロジェクト: strohlaj/Dragablz
        private void ItemDragCompleted(object sender, DragablzDragCompletedEventArgs e)
        {
            if (!IsMyItem(e.DragablzItem))
            {
                return;
            }

            _interTabTransfer = null;
            _dragablzItemsControl.LockedMeasure = null;
        }
コード例 #4
0
        protected void OnDragCompleted(DragCompletedEventArgs e)
        {
            var args = new DragablzDragCompletedEventArgs(DragCompleted, this, e);

            RaiseEvent(args);

            //OK, this is a cheeky bit.  A completed drag may have occured after a tab as been pushed
            //intom a new window, which means we may have reverted to the template thumb.  So, let's
            //refresh the thumb in case the user has a custom one
            _customThumb = FindCustomThumb();
            _templateSubscriptions.Disposable = SelectAndSubscribeToThumb().Item2;
        }
コード例 #5
0
ファイル: DragablzWindow.cs プロジェクト: Stromberg90/Frame
 private void ItemDragCompleted(object sender, DragablzDragCompletedEventArgs e)
 {
     IsBeingDraggedByTab = false;
 }
コード例 #6
0
ファイル: TabablzControl.cs プロジェクト: tleviathan/Dragablz
        private void ItemDragCompleted(object sender, DragablzDragCompletedEventArgs e)
        {
            if (!IsMyItem(e.DragablzItem)) return;

            _interTabTransfer = null;
            _dragablzItemsControl.LockedMeasure = null;
            IsDraggingWindow = false;
        }
コード例 #7
0
        private void ItemDragCompleted(object sender, DragablzDragCompletedEventArgs eventArgs)
        {
            var dragablzItems = DragablzItems()
                .Select(i =>
                {
                    i.IsDragging = false;
                    i.IsSiblingDragging = false;
                    return i;
                })
                .ToList();

            if (ItemsOrganiser != null)
            {
                var bounds = new Size(ActualWidth, ActualHeight);
                ItemsOrganiser.OrganiseOnDragCompleted(this, bounds,
                    dragablzItems.Except(eventArgs.DragablzItem),
                    eventArgs.DragablzItem);
            }

            eventArgs.Handled = true;

            //wowsers
            Dispatcher.BeginInvoke(new Action(InvalidateMeasure));
            Dispatcher.BeginInvoke(new Action(InvalidateMeasure), DispatcherPriority.Loaded);
        }
コード例 #8
0
ファイル: DragablzItem.cs プロジェクト: SepCat/Dragablz
        protected void OnDragCompleted(DragCompletedEventArgs e)
        {
            var args = new DragablzDragCompletedEventArgs(DragCompleted, this, e);

            RaiseEvent(args);
        }
コード例 #9
0
ファイル: DragablzItem.cs プロジェクト: CensoredHF/Snappie
        protected void OnDragCompleted(DragCompletedEventArgs e)
        {
            var args = new DragablzDragCompletedEventArgs(DragCompleted, this, e);
            RaiseEvent(args);

            //OK, this is a cheeky bit.  A completed drag may have occured after a tab as been pushed
            //intom a new window, which means we may have reverted to the template thumb.  So, let's
            //refresh the thumb in case the user has a custom one
            _customThumb = FindCustomThumb();
            _templateSubscriptions.Disposable = SelectAndSubscribeToThumb().Item2;
        }
コード例 #10
0
ファイル: DragablzWindow.cs プロジェクト: CensoredHF/Snappie
 private void ItemDragCompleted(object sender, DragablzDragCompletedEventArgs e)
 {            
     IsBeingDraggedByTab = false;
 }