Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Task - Practicing Data Binding | Interactive GUI
Advanced C# with .NET

bookTask - Practicing Data Binding

In the base code's XAML, there are two elements, one of them is a Checkbox, while the other is a Label.

Your task is to bind the Checkbox's IsChecked property with the Label's Text property such that, when the Checkbox is checked, it sets the Label to "Is checkbox checked? True" and if it's not then the Label is set to "Is checkbox checked? False".

You only have to modify the C# file.

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 8

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Awesome!

Completion rate improved to 3.7

bookTask - Practicing Data Binding

Stryg for at vise menuen

In the base code's XAML, there are two elements, one of them is a Checkbox, while the other is a Label.

Your task is to bind the Checkbox's IsChecked property with the Label's Text property such that, when the Checkbox is checked, it sets the Label to "Is checkbox checked? True" and if it's not then the Label is set to "Is checkbox checked? False".

You only have to modify the C# file.

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 8
some-alt