-
Recent Posts
Recent Comments
Archives
Categories
Meta
Tag Archives: ControlTemplate
XAML Irritation
Can anyone explain the following: <Style TargetType=”{x:Type Button}” BasedOn=”{StaticResource FontStyle}”> <Setter Property=”Template”> <Setter.Value> <!– wont work without respecifying the TargetType…?–> <ControlTemplate TargetType=”{x:Type Button}”> <Border Background=”{TemplateBinding Property=Background}”> <ContentPresenter/> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> As in – why does the TargetType have … Continue reading