I have a WPF application that has a few legacy panels that were written mostly with code behind. I need to set the AutomationProperties.AutomationId for the controls on the panel. For example, this Checkbox
CheckBox myCheckbox = new CheckBox();
How can I set AutomationProperties.AutomationId?
myCheckbox.SetValue(AutomationProperties.AutomationIdProperty, "checkBoxAutoID");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With