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
1655
How to stop Navigating from the TabItemEx
posted

Hi,

I am using xamTabControl. I wanted to stop user navigating to other tabitem in tabcontrol.

Ex. If I am in "Tab1" and user is doing some operation. If user will click on the "Tab2", I will show a confirmation message. If user says "yes" I will navigate to "Tab2", else I will retain in "Tab1".

Could any one please let me know, how to achive this?

Thank You,

Regards,

Ritesh

Parents
No Data
Reply
  • 69686
    posted

    Hello Ritesh,

    You could probably handle the ExecutedCommand event and see if the command that is currently executing is TabControlCommands.SelectNextTab or TabControlCommands.SelectPreviousTab and cancel it.

Children