tags:

views:

150

answers:

0

I'm trying to get the code example from here to work but using a ToolStripMenuItem instead of a ToolStripLabel. However, When I do the following

toolStripMenuItemInstance.DataBindings.Add("Checked", SingletonInstance, "Enabled")

(where Enabled is a boolean property of the SingletonInstance)

nothing happens. Checking the toolStripMenuItemInstance doesn't trigger a change on the Enabled property, and changing the Enabled property manually doesn't trigger a change on the toolStripMenuItemInstance's Checked property.

Am I missing something? Does my SingletonInstance class need to implement INotifyPropertyChanged, or do I need to add more to the BindableToolStripMenuItem class?