嵌套的ControlTemplate可能吗?控制模板内的控制模板

时间:2017-10-25 11:42:06

标签: wpf

我想一次制作两个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>

Code is shown in picture

0 个答案:

没有答案
相关问题