How to make a control in XAML public in order to be seen in other classes
Using the following XML you can define a control as a public field on the class to be able to access it from other classes: <CheckBox x:Name=”myCheckBox” x:FieldModifier=”public” /> Now you can access the field directly in code: if (win.myCheckBox.IsChecked.Value) { // … } I agree with H.B., though, that using the MVVM pattern is … Read more