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); }
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; }
private void ItemDragCompleted(object sender, DragablzDragCompletedEventArgs e) { if (!IsMyItem(e.DragablzItem)) { return; } _interTabTransfer = null; _dragablzItemsControl.LockedMeasure = null; }
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; }
private void ItemDragCompleted(object sender, DragablzDragCompletedEventArgs e) { IsBeingDraggedByTab = false; }
private void ItemDragCompleted(object sender, DragablzDragCompletedEventArgs e) { if (!IsMyItem(e.DragablzItem)) return; _interTabTransfer = null; _dragablzItemsControl.LockedMeasure = null; IsDraggingWindow = false; }
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); }
protected void OnDragCompleted(DragCompletedEventArgs e) { var args = new DragablzDragCompletedEventArgs(DragCompleted, this, e); RaiseEvent(args); }