次の方法で共有


IXRSetter (Compact 2013)

3/28/2014

This class sets a property value for a style.

Syntax

class IXRSetter : public IXRSetterBase

Inheritance Hierarchy

IXRDependencyObject

    IXRSetterBase

        IXRSetter

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.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

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.

When you create a class instance, use an IXRSetterPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can define a setter in Microsoft Silverlight 3 XAML, in the source XAML that is parsed by your application. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the Setter Class on MSDN.

Note

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

.NET Framework Equivalent

System.Windows.Setter

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Visual Appearance