Check out example codes for "wpf get dependency property in code". It will help you in understanding the concepts better.

Code Example 1

string automationId = 
    (string)myButton.GetValue(AutomationProperties.AutomationIdProperty);

Learn ReactJs, React Native from akashmittal.com