Completed
Last Updated: 18 Oct 2022 14:15 by ADMIN
Release 3.1.0
David
Created on: 16 Sep 2022 11:29
Category: TabView
Type: Bug Report
0
TabView does not propagate its BindingContext to the TabViewItems

This bug prevents the binding of the TabViewItem's properties to the underlying view-model. For example, the following code won't work:

<telerik:RadTabView x:Name="tabView">
    <telerik:TabViewItem HeaderText="{Binding SomeHeaderText}"
                                      ImageSource="{Binding SomeImageSource}">
    </telerik:TabViewItem>
</telerik:RadTabView>

As a temporary workaround, the BindingContext can be propagated manually instead:

<telerik:RadTabView x:Name="tabView">
    <telerik:TabViewItem BindingContext="{Binding BindingContext, Source={x:Reference tabView}}"
                                      HeaderText="{Binding SomeHeaderText}"
                                      ImageSource="{Binding SomeImageSource}">
    </telerik:TabViewItem>
</telerik:RadTabView>

0 comments