Classes
AddedRemovedEvent
AlertElement
AnchorContainerElement
ArrowShape
ButtonElement
CanvasElement
CanvasManager
CheckboxElement
CheckboxSkinElement
CollectionChangedEvent
CollectionSort
ColorPickerButtonElement
ColorPickerElement
ContainerBaseElement
CursorDefinition
DataGridColumnDefinition
DataGridDataRenderer
DataGridElement
DataGridHeaderColumnDividerSkinElement
DataGridHeaderElement
DataGridHeaderItemRenderer
DataGridItemData
DataGridItemRendererBase
DataGridLabelItemRenderer
DataListData
DataListElement
DataRendererBaseElement
DataRendererLabelElement
DatePickerButtonElement
DatePickerElement
DispatcherEvent
DrawMetrics
DropdownArrowButtonSkinElement
DropdownBaseElement
DropdownElement
ElementEvent
ElementGridItemClickEvent
ElementKeyboardEvent
ElementListItemClickEvent
ElementMouseEvent
ElementMouseWheelEvent
EllipseShape
EventDispatcher
FillBase
GridContainerElement
GridContainerRowColumnDefinition
ImageElement
IpInputElement
LabelElement
LinearGradientFill
ListCollection
ListContainerElement
ProgressElement
RadioButtonElement
RadioButtonSkinElement
RoundedRectangleShape
ScrollBarElement
ScrollButtonSkinElement
ShapeBase
SkinnableElement
SolidFill
StyleableBase
StyleChangedEvent
StyleData
StyleDefinition
StyleProxy
TextAreaElement
TextElement
TextFieldElement
TextInputElement
TimeInputElement
ToggleButtonElement
ToggleButtonGroup
Tween
ViewportElement


StyleDefinition

Stores a key value data set of style values by name.

Inheritance:     StyleDefinition ➞ EventDispatcher ➞ Object

Events
Event Defined By
stylechanged     :    StyleChangedEvent StyleDefinition
Dispatched when a style is added, cleared, or changed.
 


Public Functions
Show Inherited
Function Defined By
StyleDefinition() [Constructor] StyleDefinition
Creates new StyleDefinition instance.
 
clearStyle(styleName) StyleDefinition
Clears style data from this object. This is the same
passing undefined to setStyle().
  styleName     :    String
String representing the style to clear.
 
getStyle(styleName) StyleDefinition
Gets the stored style value for this object.
  styleName     :    String
String representing the style to return.
  returns     :    Any
Returns the associated style value if found, otherwise undefined.
 
setStyle(styleName, value) StyleDefinition
Sets the stored style value for this object.
  styleName     :    String
String representing the style to set.
  value     :    Any
The value to store. This may be null or undefined.
Note that a null style is different from an absent (undefined) style. A null style
will terminate a style chain lookup and return null value. An undefined style will cause
the system to look further up the style chain for a value. Passing undefined is the
same as calling clearStyle().