相较于真正的属性变更事件,使用属性触发程序对属性变更采取动作有一些限制。
Compared to a true property changed event, using a property trigger to act on a property change has some limitations.
属性触发程序会在样式或样板内建立,可让您根据指派属性触发程序之属性的值,建立条件式行为。
A property trigger is created within a style or template and enables you to create a conditional behavior based on the value of the property where the property trigger is assigned.
然而,您可以在样式中使用附加属性参考做为属性触发程序,以便将不同的样式值套用至溢位面板中之工具列内的项目。
However, you can use the attached property reference as a property trigger in a style, to apply different style values to an item within a toolbar that is in the overflow panel.
应用推荐