TabControl with UserControl inside with another TabControl

2 posts, 0 answers
  1. Alexandre
    Alexandre avatar
    6 posts
    Member since:
    Jun 2010

    Posted 04 Aug 2010 Link to this post

    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.
  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 09 Aug 2010 Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top