0
我已經看到了標籤控制的控制模板... http://www.codeproject.com/KB/WPF/WPFOutlookNavi.aspxwpf控件模板觸發器如何工作?
- 這是屬性觸發器? (不是數據/事件觸發器)
- 這個觸發器是這樣工作的 - 如果TabStripPlacement是「Bottom」...所有Setters將被執行?
<ControlTemplate.Triggers>
<Trigger Property="TabStripPlacement" Value="Bottom">
<Setter Property="Grid.Row" TargetName="ContentPanel" Value="0" />
<Setter Property="Height" TargetName="RowDefinition0" Value="*" />
<Setter Property="Height" TargetName="RowDefinition1" Value="Auto" />
</Trigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Foreground" Value="{DynamicResource
{x:Static SystemColors.GrayTextBrushKey}}" />
</Trigger>
</ControlTemplate.Triggers>