I am writing a WinForms application, and try to force a boolean property on a .NET object to a checkbox I am "checked" property I am successfully binding, but when I change the value of the true source property from the unreal (I have a button that it is toggle), checkbox "check" property does not show that change.
if (chkPreRun.DataBindings ["checkeded"] == faucet) {Debug.WriteLine ("add chkPreRun database"); Binding _binding = chkPreRun.DataBindings.Add ("Checked", NwmConfig, "PreRun") // It just ensured that these were being set correctly _binding.DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged; _binding.crintupdate = controlpacedate.datpropertychanged; }
I can successfully tie the text property with the value of the text box, for example. I am convinced that while "checked" property is bound to what I am missing but, but not.
After working for it, the The code is a ? (UI does not vote for change, it only knows about changes through notification events Is) pre-playful
event in the source ( EventHandler
) should be removed, or this property should apply to INotifyPropertyChanged
). Or from the side of the case, it is necessary to have an custom propertyDescriptor
implementation notification that (but it is very rare. PreRunChanged
it is picked up at the right time
Comments
Post a Comment