how to create dependency property in wpf c# code example
Example: wpf get dependency property in code
string automationId =
(string)myButton.GetValue(AutomationProperties.AutomationIdProperty);
string automationId =
(string)myButton.GetValue(AutomationProperties.AutomationIdProperty);