Can not bind "IsBrake" property

3 posts, 1 answers
  1. Alexey Oyun
    Alexey Oyun avatar
    74 posts
    Member since:
    Mar 2010

    Posted 07 Oct 2010 Link to this post

    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. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 07 Oct 2010 Link to this post

    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
  3. DevCraft banner
  4. Alexey Oyun
    Alexey Oyun avatar
    74 posts
    Member since:
    Mar 2010

    Posted 07 Oct 2010 Link to this post

    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
Back to Top