XamlSetValueEventArgs.CallBase Method

Definition

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.

C#
public virtual void CallBase();

Remarks

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 Inheritors

The default implementation is empty.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10