Docs / UI

Glossary: DependencyProperty<T>.OwnerPreActionDelegate

The signature of DependencyProperty.OwnerPreActionDelegate and the events it handles.

A delegate: the handler type of an event.

Signature: void OwnerPreActionDelegate(BaseElement owner, ref T value, ref bool canProceed, ValueSources valueSource)

Parameter Type Description
owner BaseElement The element the property belongs to.
value ref T The value about to be stored; change it to store another one.
canProceed ref bool Set it to false to reject the value: nothing is stored.
valueSource ValueSources The source the value is for.