Al's BrainDump

RSS

Navigation





Quick Search
»
Advanced Search »

PoweredBy

Style Tag

  • Needs a TargetType property.
  • It can have a single BasedOn property, to extend and existing style.

Setter Tag

  • It is necessary as the style element is dumb and doesnt know the shape of the class it is being applied to, so string property names are required.
  • Simplest format is the property, value pair.
  • More complex is the multiline property value syntax, setter.value tag defines everything within it is property XMLA.

Style.Triggers

  • Set property depending on other property value

    Trigger Property="IsMouseOver" Value="True"
    Setter Property="Foreground" Value="Red"



ScrewTurn Wiki version 3.0.5.600. Some of the icons created by FamFamFam.