This project is read-only.

BackstageTabItem - Problem with ContentTemplate

Feb 21, 2011 at 8:31 PM
Edited Feb 21, 2011 at 8:32 PM
Hello everybody,

first of all, very good control library.

My question:

i want to use the ContentTemplate property of BackstageTabItem. If I use a DataTemplate with this property only an empty display appears.

    <DataTemplate x:Key="TemplateForItem1">
        <Grid Background="Yellow" Opacity="0.3" Margin="15">
            <TextBlock Text="This is text in TemplateForItem1"/>
<f:BackstageTabItem ContentTemplate="{StaticResource TemplateForItem1}"/>

If I use the following source, everything works fine.

 <f:BackstageTabItem Header="Test">
    <Grid Background="Yellow" Opacity="0.2" Margin="20"/>

I have read, the problem should be solved. Do I anything wrong???

Perhaps, someone can help me, thanks.