WPF4: Binding on SelectedItem or SelectedIndex doesn't work

2 posts, 0 answers
  1. Tom
    Tom avatar
    2 posts
    Member since:
    Nov 2010

    Posted 02 Nov 2010 Link to this post

    Hi, 

    I'm trying to bind the SelectedIndex or SelectedItem properties of the RadTabControl to my viewmodel, but it's not working. It seems as if the binding doens't exist on the property, even though it's clearly there in the XAML.

    Trying the exact same scenario with the standard WPF tabcontrol works fine (exaclty the same XAML, only the typenames are different).

    In other words, I cannot select a tab or find out what tab is selected without resorting to code behind. Since we're working in a MVVM scenario with no coupling between the view and the model (except for Databinding), this is not an option.

    I have a zipfile with a project demostrating this.

    Greetings,
    Tom


  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 08 Nov 2010 Link to this post

    Hello Tom,

     Can you please find the attached project and if it's working for you. It uses MVVM and RadTabControl, that is bound and the SelecetedItem as well. 
    If you still have issues, please send us your example project.
    Thank you.

    Greetings,
    Miro Miroslavov
    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. UI for WPF is Visual Studio 2017 Ready
Back to Top