This is a migrated thread and some comments may be shown as answers.

TabControl with UserControl inside with another TabControl

1 Answer 80 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 04 Aug 2010, 09:34 PM
Hello,
I'm having the following problem,

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

Sort by
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
Tags
TabControl
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or