Wpf 有没有办法自动创建样式

Wpf 有没有办法自动创建样式,wpf,xaml,windows-8.1,Wpf,Xaml,Windows 8.1,我需要在我的应用程序中使用多种样式,如下所示: <Style TargetType="TextBlock" BasedOn="{StaticResource RotondaTextBlock}" x:Key="HubItemName"> <Setter Property="Foreground" Value="{StaticResource KBlue}"/> <Setter Property="FontSize" Value="48"/>

我需要在我的应用程序中使用多种样式,如下所示:

<Style TargetType="TextBlock" BasedOn="{StaticResource RotondaTextBlock}" x:Key="HubItemName">
    <Setter Property="Foreground" Value="{StaticResource KBlue}"/>
    <Setter Property="FontSize" Value="48"/>
    <Setter Property="Margin" Value="0 25 0 0"/>
</Style>

<Style TargetType="TextBlock" BasedOn="{StaticResource RotondaTextBlock}" x:Key="HubItemDesc">
    <Setter Property="Foreground" Value="{StaticResource KOrange}"/>
    <Setter Property="FontSize" Value="32"/>
    <Setter Property="Margin" Value="0 15 0 0"/>
</Style>
我只是想知道是否有任何方法可以为样式和creae样式实例创建模板,例如:

<Style Template="MyTemplate" Foregraund="{StaticResource KOrange}" 
     FontSize="48" Margin="0 0 0 0" x:Key="NewStyle"/>