Hello,
I am new to WPF, so bare with me here. I an attempting to create a hyperlink that launches a webpage. Here is my code.
And here is the code behind.Code:<TextBlock Margin="352.5,0,356,232.54" VerticalAlignment="Bottom" TextWrapping="Wrap" MouseLeftButtonDown="Test_Click"> <Hyperlink>Click Here</Hyperlink> </TextBlock>
It doesn't do anything when I click down on the mouse... Am I missing something here?Code:private void Test_Click(object sender, RoutedEventArgs e) { System.Diagnostics.Process.Start("http://www.msn.com"); }
What is the best method for doing hyperlinks? I have created a button template for a hyperlink and can get it to work this way, but I really didn't want a template for each hyperlink I want...
Any direction or help is greatly appreciated!




Reply With Quote