次の方法で共有


Style (Object)

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

Contains property setters that can be shared between instances of a type.

<Style ...>
  oneOrMoreSetters
</Style>
-or-
<Style .../>

XAML Values

Value

Description

oneOrMoreSetters

One or more Setter object elements.

Properties

BasedOn, Name (DependencyObject), Setters

Managed Equivalent

Style

Remarks

Styles have significant restrictions in the JavaScript API for Silverlight. Most scenarios involving templates and styling will require using the managed API and activation model. The BasedOn property exists but is not settable in JavaScript and is not useful for any JavaScript scenario.

Version Information

Silverlight 2