Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
TabItems Moving
posted

Hi

How can i move the TabItems dynamically,i mean dragging the Tabitems to another position.

Thanks

Parents
No Data
Reply
  • 30945
    Suggested Answer
    Offline posted

    Hello,

     

    Thank you for your post.  I have been looking into the functionality that you are looking for and  I can suggest the following two approaches for implementing it:

    1. You can implement the drag and drop of the items in the XamTabControl, using Infragistics Drag and Drop Framework. To do that you can re-template the TabItemEx and setting DragSource and DropTarger of its root element. Then using the events of the DragSource, you can implement the tab moving.

    2. You can use a XamDockManager, instead of the XamTabControl. In the XamDockManager you can add a DocumentHostControl and add ContentPanes in it, which will be the tabs. Then you can hide the DockingIndicator and also create a style for the ContentPane in which you can restrict the drag and drop of the ContentPanes to only the DocumentHost.

    I have created a sample application for you, that demonstrates how you can implement both of the approaches, I have mentioned.

     

    If you need any further assistance on the matter, please do not hesitate to ask.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    TabControlItemsDragging.zip
Children