I am adding a link to my WPF app using Hyperlink in a TextBox:
<TextBlock Margin="480,92,460,713" Height="24">
<Hyperlink NavigateUri="{Binding MyLink}" RequestNavigate="Hyperlink_RequestNavigate">My Link</Hyperlink>
</TextBlock>
The Binding "MyLink" does not work. The link I need to use has a query string with a variable i need to change dynamically in the code. If I try to even hardcode the link into the XAML i get an error because the query string has a variable with an ampersand.
My link is working when i point it to a site like google. but i need to set it in the c# code and be able to set my variable in the query string. is there a way to do this? thanks!