In my WPF application where I am using one user control containing some radio buttons and style & color settings from one resource.xaml. When I change the Number format in Regional Settings (Changing decimal seperator as "," and digit seperator as "." ) the application crashes. But if I launch the application by Enabling the Visual Studio as Hosting Process then it works fine.
When it crashes it throws the following exception
Cannot convert string '1,0,43,1' in attribute 'Margin' to object of type 'System.Windows.Thickness'. '1,0,43,1' string cannot be converted to Length. Error at object 'rbStage' in markup file 'KinetDx.LayoutPalette;component/layoutdropdownform.xaml' Line 18 Position 221.
Please shed some light why this will happen and how can we fix it.