Create controls dynamically in WPF

1

I need to create checklists that depend on previous entries and processing. How do I create these checklists dynamically in WPF? (a code snippet, please).

    
asked by anonymous 13.03.2017 / 13:47

1 answer

2
CheckBox ch1 = new CheckBox();
ch1.Location = new Point(10, 10);
ch1.Text = "Olá Mundo!";
this.Controls.Add(ch1);

See if it is resolved, also enter your default options, such as if you want it already checked, etc.

    
13.03.2017 / 14:32