XamlSetValueEventArgs.CallBase Method ()

.NET Framework (current version)
 

When overridden in a derived class, provides a way to invoke a SetValue callback as defined on a base class of the current acting type.

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

public virtual void CallBase()

CallBase might be invoked as part of a ReceiveMarkupExtension implementation, in cases where the implementation is expecting a particular markup extension as the primary case but wants a way to attempt alternative cases without immediately failing. This is useful for dealing with a markup extension that might itself be extensible.

The "current acting type information" is only available internally, and refers to the type of the instance where the set operation is occurring. XamlSetMarkupExtensionEventArgs and XamlSetTypeConverterEventArgs both override this method by using the internal current acting type information.

Notes to Implementers:

The default implementation is empty.

.NET Framework
Available since 4.0
Return to top
Show: