Customized TabItem in ResourceDictionary

I have created a TabItem in a ResourceDictionary and use it in my UserControl but the defined content won't show up, why and how to fix this?

The ResourceDic:

    <ControlTemplate x:Key="T1" TargetType="sdk:TabItem">
                <StackPanel Orientation="Horizontal">
                    <sdk:Label Content="{TemplateBinding Header}"/>
                    <Button Content="X" Margin="15,0,0,0"/>

            <toolkit:DockPanel MinWidth="600">
                <Grid toolkit:DockPanel.Dock="Left">
                    <sdk:Label Grid.Row="2" Grid.Column="0" Content="Pic:"/>


The UserControl:

<UserControl x:Class="PortView" ....>
                <ResourceDictionary Source="PortfolioTemplateDictionary.xaml" />

        <sdk:TabItem Template="{StaticResource T1}" Header="Page 2"/>


I have now used the approach explained in this article: TabItem in a separate XAML

<UserControl x:Class="WpfApplication19.Tab1Data"
        <TextBlock Text="Tab Data" />

    <TabItem Header="Tab 1">
        <tabData:Tab1Data />

Need Your Help

Adding AnchorPanes to ScrollPanes Javafx 8

javafx java-8 blurry

in JavaFX, when I add an AnchorPane that has a Label inside to a ScrollPane, the whole AnchorPane comes in a tad blurry, as if it had a Photoshop-feather effect. I am using Java8 the latest release.

GLSL/HLSL - Multiple single line conditional statements as opposed to single block

opengl glsl gpu hlsl boolean-logic

Doing some research into antialiasing methods, I stumbled upon this piece of code (grabbed from Nvidia's FXAA shader):