开发者

Do WPF hyperlinks only work in pages?

I'm new to the Hyperlink control. I wish to have a hyperlink in a regular WPF window which will navigate to a URL by opening the standard browser. I have added the hyperlink, but it does nothing.开发者_如何学Python

Before I implement a handler to do the work myself, can anyone please confirm that the Hyperlink control will navigate only within pages?


You will need to do it yourself.

The simplest way to do it is to handle the Hyperlink.RequestNavigate event and call Process.Start with the URL. (This will open the default browser).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜