XamlObjectWriter::OnSetValue Method (Object^, XamlMember^, Object^)
Invokes any XamlSetValueHandler referenced method that is associated with XamlObjectWriterSettings for this writer, as long as handled in XamlSetValueEventArgs event data is not true.
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::BooleanA 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.
Available since 4.0