How to make a control in XAML public in order to be seen in other classes
问题 I'm working in wpf application i made a checkbox in the XAML, then my code calls a function in a class and in this function there is an if condition where its checking on whether the checkbox is checked or not but the checkbox is not seen in this class, so how to do this? Many thanks EDIT: Here is the steps I did: i created the ViewModel class under the same project of KinectSkeleton as shown: ViewModel class: public class ViewModel { public bool IsChecked { get; set; } public bool is_clicked