I have WPF Hyperlinkfrom which I am trying to get text content.
For example:
<Hyperlink Command="{Binding CustomersCommand}" Name="HLCustomers">
Customers
</Hyperlink>
This is not possible using the usual method of accessing a property Textor using VisualTreeHelperto get some child text element, since Hyperlinkit is not a visual element. I tried to get text from FirstInline, but that also does not give me text.
How do I get the value "Clients" from an element Hyperlinkin the above example at runtime?
source
share