Greetings.

Probably not once asked a question, but the answer was not found.

How can I check the checkbox by pressing a button on the form? On the construction of type _8b.click = true; swears that the formula is not correct, and you need either + = or - =.

Thanks in advance for the answer

    1 answer 1

    It is possible that this is a once asked question. Still, before working with any platform, you need at least a little acquaintance with it and its capabilities. In particular, events accept the delegate to the calling function, and not some kind of true. Assigning true is generally something incomprehensible and going beyond simple logic.

    All right, your business, simply more difficult code you do not write at random and to prompt with such level of understanding very few people will undertake. Essentially, everything is simple:

    public MainWindow() { InitializeComponent(); ΠΊΠ½ΠΎΠΏΠΊΠ°.Click += new RoutedEventHandler(func_Click); } void func_Click(object sender, RoutedEventArgs args) { чСкбокс.IsChecked = true; }