Export (0) Print
Expand All

XamlObjectWriter.OnSetValue Method

Invokes any XamlSetValueHandler referenced method that is associated with XamlObjectWriterSettings for this writer, as long as handled in XamlSetValueEventArgs event data is not true.

Namespace:  System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

protected virtual bool OnSetValue(
	Object eventSender,
	XamlMember member,
	Object value
)

Parameters

eventSender
Type: System.Object

The object to report as the source to the handler.

member
Type: System.Xaml.XamlMember

The name of the property to set, which is passed to the handler as part of XamlSetValueEventArgs.

value
Type: System.Object

The value to provide for the property that is named by property. The value is passed to the handler as part of XamlSetValueEventArgs.

Return Value

Type: System.Boolean
A Boolean value that is set by any associated handler; otherwise, false. See Remarks.

If the SetValue operation for this XAML writer has an associated handler (a XamlSetValueHandler is declared in XamlObjectWriterSettings), this method creates new XamlSetValueEventArgs and passes them to the handler. The return value is set by reading the Handled value that is passed through the event data. If no handler exists and this method is invoked, the call returns false.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft