The result of calculator can be retrieved using Result property. The setter of this property parses the character string from left to right, locates the AutomationElement for the button on the calculator corresponding to the character and then invokes it using InvokePattern ’s Invoke method.
https://www.codeproject.com/Articles/141842/Automate-your-UI-using-Microsoft-Automation-Framew



