AdvancedTabControl dragging events

Docking/MDI for WPF Forum

The latest build of this product (v2019.1 build 0685) was released 4 months ago, which was before this thread was created.
Posted 5 days ago by Albert Vishnevsky
Version: 19.1.0685
Avatar

Hi,

The AdvancedTabControl.CanTabsDrag property works perfect,

but I need implement undo redo actions for tab reordering. 

So I am looking for start and finish dragging events in AdvancedTabControl.

Which event can I use to achive my target?

Thank you very much.

Albert

Comments (3)

Posted 5 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Albert,

The AdvancedTabControl.TabReordered event fires after a tab is moved.  While it doesn't pass old index positions, if you tracked the index state of each tab at the start for your base undo step, you could then see how the indices changed in that event.  Then you could persist the new order of tabs there for another undo step in the event handler.


Actipro Software Support

Posted 3 days ago by Albert Vishnevsky
Avatar

Thank you very much for the support.

But I cannot find any TabReordered event.

May be it is an internal event or its name was changed.

Into Actipro WPF Studio Documentation there is no information about AdvancedTabControl.TabReordered event too.

Could you specify how I can access to it?

I can see these events:
AdvancedTabControl_DragEnter, AdvancedTabControl_DragLeave, AdvancedTabControl_Drop.

Could you give me a scenario how to use them? 

I cannot catch when these events raise.

Thanks,

Albert

Posted 2 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Albert,

I apologize, that was an internal event.  We are going to add it as a TabDragReordered event for the next maintenance release.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.