WPF binding to My.Settings for radiobuttons (using vb.net) -


After the advice on

, I am compiling the work for checkboxes Was able to get, but not for radiobuton?

After saving MySettings, the checkbox value is either correct or false if the checkbox is checked or not (expected), while the radioabutan is always correct.

I is wrong, or is this a bug?

(ps: I got a job around, but ...)

  xmlns: self = "clr-namespace: myprog" & lt; Czech box Name = "cbStartDocked" IsChecked = "{Binding Source = {x: Static own: MySettings.Default}, path = StartDocked}" Margin = "8,0,20.706,39" height = "21" Carykshetrelinment = " Below "& gt; Start doc_ked & lt; / Checkbox & gt; & Lt; RadioButton name = "rbDockLeft" IsChecked = "{Binding Source = {x: Static own: MySettings.Default}, path = DockLeft}" Margin = "25,0,24,24" height = "16" VerticalAlignment = "bottom" & Gt; Doc _left & lt; / RadioButton & gt; & Lt; RadioButton name = "rbDockRight" IsChecked = "{Binding Source = {x: Static own: MySettings.Default}, path = DockRight}" Margin = "25,0,33,2" height = "16" VerticalAlignment = "bottom" & Gt; Doc _right & lt; / RadioButton & gt;  

As the settings they should, all Boolean all user scope with the correct capitalization, the default value of the correct as well as the wrong, all the user scope

Private sub rbDockLeft_Checked (ByVal as the object, in the form of ByVal E system: "Text after" itemprop = "text">

Here, for the benefit of others I have applied around the work. Windows.RoutedEventArgs handles rbDockLeft.Checked

  My.Settings.DockLeft = True My.Settings.DockRight = False  
< P> End Sub

Private sub rbDockLeft_Uncheck ed (ByVal as this object, ByVal e System.Windows.RoutedEventArgs as) handles rbDockLeft.Unchecked

  My.Settings.DockLeft = false My.Settings.DockRight = true  

ending sub


Comments