I have the following hierachy:
public class A
{
protected class B
{
}
}
And I've tried to define a default style in the following ways (inside generic.xaml):
<Style TargetType="local:A+B">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:A+B">
<Grid/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="local:A.B">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:A.B">
<Grid/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="local:B">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:B">
<Grid/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Does anyone know the correct syntax?