In my screen has a TabControl with several TabItems. Each calls a different User Control. In one such User Control also has a TabControl. When I click this item it goes in a loop in the event of TabControl SelectionChange the main screen.
Can someone help me?
Thanks, Alexandre.
1 Answer, 1 is accepted
0
Miroslav
Telerik team
answered on 09 Aug 2010, 06:02 PM
Hello Alexandre,
I am not sure I understood your scenario correctly.
The SelectionChanged event is a routed event and it is possible that you are handling the events of the inner TabControl from code that is meant to handle only the events of the outer TabControl.
To work around this, set the e.Handled = true; when you perform an action as a result of an event.
This way the event will not be routed to any handlers in the visual tree that were not meant for it.
Please correct me if I am missing something here.
Greetings,
Miroslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items