Partager via


IXRSetter (Windows Embedded CE 6.0)

1/6/2010

This class sets a property value for a style.

Syntax

class IXRSetter : public IXRSetterBase

Methods

Method Description

IXRSetter::GetValue

Retrieves the value of this object as an object derived from IXRDependencyObject.

IXRSetter::SetValue

Sets the value of this object as an object derived from IXRDependencyObject.

Remarks

An IXRStyle object contains a collection of one or more IXRSetter objects.

Do not create new IXRSetter objects. To change the value of an object that sets an IXRDependencyObject value type, you can retrieve the collection of value-setting objects for a style by using IXRStyle::GetSetters. Then, you can modify the IXRSetter objects stored in the retrieved IXRSetterBaseCollection.

You can define a setter in Microsoft Silverlight 2 XAML, in the source XAML that is parsed by your application. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see 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.

Note

This class is not used to create new property-value pairs. Therefore, Silverlight does not support an equivalent for the Property attribute supported by Microsoft Silverlight 2 XAML.

Inheritance Hierarchy

IXRDependencyObject

    IXRSetterBase

        IXRSetter

.NET Framework Equivalent

System.Windows.Setter

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