Style (UIElement)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets an instance of the Style class that is applied for the current object during rendering.

<object ...>
  <object.Style>
    singleStyle
  </object.Style>
</object>
value = object.Style
object.Style = value

XAML Values

Value

Description

singleStyle

A single Style instance that is defined inline.

Property Value

Type: Style

A Style object.

This property is read/write.

Managed Equivalent

Style

Remarks

This property is not typically used in scripting. Styles have significant restrictions in the JavaScript API for Silverlight.

Version Information

Silverlight 2