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

Can not bind "IsBrake" property

2 Answers 42 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Alexey Oyun
Top achievements
Rank 1
Alexey Oyun asked on 07 Oct 2010, 09:15 AM
Hi,
I am trying to bind "IsBrake" property of tabitem control with no luck.
I did same bindning to "IsEnabled" and it works.
I think that "IsBrake" is not dependancy property, am I right? if yes, could you please make it so.

Here is code:
<UserControl ...
    d:DesignHeight="300" d:DesignWidth="400">
    <UserControl.Resources>
        <telerik:ContainerBindingCollection x:Key="TabItemContainerBindings">
            <telerik:ContainerBinding PropertyName="IsBrake" Binding="{Binding IsBrake}" />
            <telerik:ContainerBinding PropertyName="IsEnabled" Binding="{Binding IsBrake}" />
        </telerik:ContainerBindingCollection>
        <DataTemplate x:Key="TabItemTemplate"
                telerik:ContainerBinding.ContainerBindings="{StaticResource TabItemContainerBindings}">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Name}" />
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
        <Grid x:Name="LayoutRoot" Background="White">
        <Controls:RadTabControl ItemsSource="{Binding Children}"
                ItemTemplate="{StaticResource TabItemTemplate}"
                />
    </Grid>
</UserControl>

Thanks, Alexey.

2 Answers, 1 is accepted

Sort by
0
Accepted
Zarko
Telerik team
answered on 07 Oct 2010, 01:14 PM
Hello Alexey Oyun,

I can't see a problem in the code snippet that you've provided, so could you please take a look at the attached project and see if this is what you want? If you have further questions feel free to ask.

All the best,
Zarko
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
0
Alexey Oyun
Top achievements
Rank 1
answered on 07 Oct 2010, 01:31 PM
Your solution works as expected. You have newer build, 2010.2.924.1040, and I have 2010.2.821.1040
I will test it again when new release will be out.

Thanks, Alexey
Tags
TabControl
Asked by
Alexey Oyun
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Alexey Oyun
Top achievements
Rank 1
Share this question
or