We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Change the order of TabnavigationItems

Hi,

having the different TabNavigationItems  of a TabNavigationControl defined inside XAML.
So no ItemsSource is available.

Is there a way to change the order of the TabNavigationItems from inside the program?
i.e. based on User Selection the 2nd tab, defined in xaml, should be shown first and the first should be shown second.

thanks,

Helmut

3 Replies

GS Gokul Sainarayanan Syncfusion Team January 21, 2020 05:25 PM UTC

Hi Helmut,

Thank you for contacting Syncfusion support.

We have checked your reported query in TabNavigation control and we can change the order of the TabNavigationItems using the Remove and Insert functions through which we remove a particular item from a particular position and then insert it into the desired position. We have prepared the sample for the same in which we have changed the order of the two tabs through a button click in the runtime. Please find the sample in the below location.

Sample: https://www.syncfusion.com/downloads/support/forum/150736/ze/TabNavigation1-1627875753  

Please check and let us know whether it resolves the reported query.

Regards,
Gokul S


HW Helmut Wahrmann January 21, 2020 07:08 PM UTC

Hi,

thanks for your info. will use that.

br,

Helmut


GS Gokul Sainarayanan Syncfusion Team January 22, 2020 07:10 AM UTC

Hi Helmut,

Thanks for your update.

Please let us know if you need any further assistance on this.

Regards,
Gokul S

Loader.
Live Chat Icon For mobile
Up arrow icon