次の方法で共有


Value (Setter)

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

Gets or sets the value to set the styled property with.

<Setter ...>
  <Setter.Value>
    objectValue
  </Setter.Value>
</Setter>
-or-
<Setter Value="attributeValue"/>

XAML Values

objectValue

An object element that specifies the value of the property being set.

attributeValue

A string that specifies the attribute value of the property being set. The format and interpretation of the string provided for the attribute value depends on the property that is being set.

Property Value

The value to set the styled property with. For more information, see Remarks.

Managed Equivalent

Value

Remarks

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

Applies To

Setter

Version Information

Silverlight 2