我想一次制作两个controlTemplate并使用公共属性分别调用它们。
<ControlTemplate x:Key="ProcessTemplate" TargetType="{x:Type Button}">
<ControlTemplate x:Key="DecisionTemplate" TargetType="{x:Type Button}">
<!--I want to add like this-->
<Grid >
<Path Style="{StaticResource Process}" ToolTip="Process">
<ControlTemplate> <Path Style="{StaticResource Process_DragThumb}"/> </ControlTemplate>
</Path> <Viewbox> </Viewbox>
</Grid>
</ControlTemplate>