依存関係プロパティを持つカスタム コントロールを開発します
public static readonly DependencyProperty StateBorderBrushProperty =
DependencyProperty.Register("StateBorderBrush", typeof(Brush), typeof(SmartCanvas),
new FrameworkPropertyMetadata(Brushes.Transparent,
FrameworkPropertyMetadataOptions.None));
xaml のように外部からコントロールの ControlTemplate を設定しようとすると、問題が発生します
<ControlTemplate TargetType="controls:SmartPrimitive">
<Grid>
<ContentPresenter/>
<Border BorderBrush="{TemplateBinding StateBorderBrush}" BorderThickness="2"/>
</Grid>
</ControlTemplate>
上記の TemplateBinding の文字列では、「XamlParseException: The given key was not present in the Dictionary」のように聞こえます。何が間違っている可能性がありますか?