protected internal virtual void OnUpdate()
Protected Friend Overridable Sub OnUpdate()
protected internal virtual void OnUpdate()
Protected Friend Overridable Sub OnUpdate()
The OnUpdate method is called periodically by the framework once the control has been created. This provides an opportunity to run some code within your customization. One typical use of OnUpdate is to determine and set the Enabled
property of the control. Note, since OnUpdate is called very frequently, you should avoid lengthy operations in this method as this would reduce the responsiveness of the application user interface.
Control PlugIns are primarily enabled and disabled based on their associated condition. The control object itself will not be loaded or created until its specified condition is initially met, and thereafter, OnUpdate will not be called unless the supplied context is currently satisfied. Note that the loadOnClick
attribute is checked after the condition
, so delay loaded controls will still appear disabled if their condition hasn’t yet been satisfied.
Target Platforms: Windows 10, Windows 8.1