TriggerHierarchy: Object TriggerBase

     <Trigger         Property="PropertyName"         Value="Value" /> 

<Trigger .../> is used to conditionally style targets (Example 10-7). It contains one or more Setter elements that describe what to apply when the trigger is active.


Property (required)

The attribute name examined by Value to determine whether to execute the TRigger (Example 10-8).

Value (required)

The value of the attribute. If the value of the target attribute matches this value, the trigger fires.

Example 10-8. Setting the Value attribute for a Trigger

 <Trigger Property="ComboBoxItem.IsMouseOver" Value="true" > 

XAML in a Nutshell
XAML in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596526733
EAN: 2147483647
Year: 2007
Pages: 217 © 2008-2017.
If you may any questions please contact us: