Procedure OnUpdate
OnUpdate is called as part of an items Update process. This is used along with IsChecked, IsEnabled and IsVisible to keep an item up to date.
Note that the Update process will set the enabled, checked and visible state if IsChecked, IsEnabled and IsVisible is used. In such a case you may rarely need to you OnUpdate. See Update for a full description of this process.