There is anyway to get the contents of the hyperlink from the resource file in WPF

In any case, you can get the hyperlink from the resource file in xaml. I know there is a way to the rear code. I tried using Name = "{x: Static Properties: Resources.stringname}", but it throws an error

Or if there is any work?

I tried the name, but it gives an error: cannot bind the Uid or Name property in XAML

+3
source share
2 answers

What about:

<Hyperlink NavigateUri="{x:Static Properties:Resources.SomeUrl}">
    <Run Text="{x:Static Properties:Resources.SomeUrl_Description}"/>
</Hyperlink>
+4
source

You cannot bind to Namein XAML because it is used internally to create links and must be unique. Some relevant bits from MSDN :

, (IsAnimationProhibited ), . , , : .

. . " WPF XAML".

0

All Articles