Partager via


IXRStyle (Windows Embedded CE 6.0)

1/6/2010

This class contains a collection of objects used to set properties that can be shared between instances of a specific type.

Syntax

class IXRStyle : public IXRDependencyObject

Methods

Method Description

IXRStyle::GetIsSealed

Retrieves a value that indicates whether this style is read-only.

IXRStyle::GetSetters

Retrieves a collection of objects used to set properties.

IXRStyle::GetTargetType

Retrieves the type of object for which this style is intended.

IXRStyle::Seal

Locks this style so that you cannot change its target type nor its value-setting objects in its IXRSetterBaseCollection object.

IXRStyle::SetTargetType

Sets the type of object for which this style is intended.

Remarks

You can set a style on any object that derives from IXRFrameworkElement. To do this, supply an IXRStyle object to its inherited method IXRFrameworkElement::SetStyle.

You can also set a style for all objects in an item collection that belongs to an IXRSelector-derived object. To do this, call IXRComboBox::SetItemContainerStyle or IXRListBox::SetItemContainerStyle.

For more information about the objects used to set values in the collection in an IXRStyle object, see IXRSetter.

You can also define a style in Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see in Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

    IXRStyle

.NET Framework Equivalent

System.Windows.Style

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for Visual Appearance and Behavior

Other Resources