How can I set the text of a WPF Hyperlink via data binding?

后端 未结 3 2000
臣服心动
臣服心动 2020-12-07 14:18

In WPF, I want to create a hyperlink that navigates to the details of an object, and I want the text of the hyperlink to be the name of the object. Right now, I have this:

3条回答
  •  不知归路
    2020-12-07 14:53

    On Windows Store app (and Windows Phone 8.1 RT app) above example does not work, use HyperlinkButton and bind Content and NavigateUri properties as ususal.

提交回复
热议问题