XamlObjectWriter.OnSetValue Method (Object, XamlMember, Object)

.NET Framework (current version)

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


Type: System.Object

The object to report as the source to the handler.

Type: System.Xaml.XamlMember

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

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
Available since 4.0
Return to top