Partager via


XRValueChangedEventArgs<_ValueType> (Windows Embedded CE 6.0)

1/6/2010

This structure contains event data for the ValueChanged event, which occurs when a value changes.

Syntax

template <typename _ValueType>
struct XRValueChangedEventArgs : XRRoutedEventArgs
{
    _ValueType OldValue;
    _ValueType NewValue;
};

Members

  • OldValue
    Indicates the previous value.
  • NewValue
    Indicates the new value.

Remarks

This template provides a generic event-data structure. You can customize this structure for a certain value type by specifying a type for the generic _ValueType parameter.

The following code shows the syntax for using this structure:

XRValueChangedEventArgs<_ValueType>

The following example shows how this template is used by the AddValueChangedEventHandler method, which attaches a delegate that handles a float value:

virtual HRESULT STDMETHODCALLTYPE AddValueChangedEventHandler(
         __in IXRDelegate<XRValueChangedEventArgs<float> >* pDelegate
        ) = 0;

Inheritance Hierarchy

XREventArgs

    XRRoutedEventArgs

        XRValueChangedEventArgs

.NET Framework Equivalent

None.

Requirements

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

See Also

Reference

Silverlight for Windows Embedded Structures
IXRVisualStateGroup::AddVisualStateChangedEventHandler
IXRVisualStateGroup::AddVisualStateChangingEventHandler
IXRControl::AddIsEnabledChangedEventHandler
IXRRangeBase::AddMaximumChangedEventHandler
IXRRangeBase::AddMinimumChangedEventHandler
IXRRangeBase::AddValueChangedEventHandler