XamlObjectWriter.OnSetValue(Object, XamlMember, Object) Method

Definition

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

protected:
 virtual bool OnSetValue(System::Object ^ eventSender, System::Xaml::XamlMember ^ member, System::Object ^ value);
protected virtual bool OnSetValue (object eventSender, System.Xaml.XamlMember member, object value);
abstract member OnSetValue : obj * System.Xaml.XamlMember * obj -> bool
override this.OnSetValue : obj * System.Xaml.XamlMember * obj -> bool
Protected Overridable Function OnSetValue (eventSender As Object, member As XamlMember, value As Object) As Boolean

Parameters

eventSender
Object

The object to report as the source to the handler.

member
XamlMember

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

value
Object

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

Returns

A Boolean value that is set by any associated handler; otherwise, false.

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.

Applies to