TopLevelTemplate defined in App.xaml raises error

2 posts, 0 answers
  1. Michael
    Michael avatar
    4 posts
    Member since:
    Oct 2007

    Posted 24 Sep 2008 Link to this post


    I am having troubels to define the TopLevelTemplate of RadPanelBarItem in App.xaml.


    Style TargetType="teleriknav:RadPanelBarItem" x:Key="PanelBarItemStyle">
    <Setter Property="TopLevelTemplate">
                <ControlTemplate TargetType="teleriknav:RadPanelBarItem">
                    <Grid x:Name="RootElement">
                        .... copy from PanelBarItem.xaml

    To be used in Menu.xaml like this:


    teleriknav:RadPanelBar Grid.Row="0" Grid.Column="0" x:Name="pb">
    <teleriknav:RadPanelBarItem Header="Hello" Style="{StaticResource PanelBarItemStyle}">

    This leads to the following error on starting:
    Invalid attribute value TopLevelTemplate for property Property. [Line: 235 Position: 39]

    Any suggestions?
    Thanx, Michael

  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 30 Sep 2008 Link to this post

    Hello Michael,

    Sorry for the late response on this ticket. This is a bug in the current version. We wil fix it with the release tommorow. Thanks for your patience!

    Best wishes,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top