Is there any possibility to use XPath in order to identify each XAML element in running application?
For example if I have following XAML structure.
<Page>
<StackPanel>
<Button />
<Button />
</StackPanel>
</Page>
I would like to know XPath of the second button for instance and when I have it, I would like to retrieve the button thanks to XPath afterwards.
I know that I can work with XPath without any problems if I have XmlDocument
but I would like to achieve the same stuff with elements from running application if it is possible.