dependency property in wpf example code project
Example: wpf get dependency property in code
string automationId =
(string)myButton.GetValue(AutomationProperties.AutomationIdProperty);
string automationId =
(string)myButton.GetValue(AutomationProperties.AutomationIdProperty);