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

TopLevelTemplate defined in App.xaml raises error

1 Answer 29 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 24 Sep 2008, 05:35 PM
Hello!

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

<

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

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}">
    </teleriknav:RadPanelBarItem>
</teleriknav:RadPanelBar>

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

Any suggestions?
Thanx, Michael

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 30 Sep 2008, 05:59 AM
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,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
PanelBar
Asked by
Michael
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or