How to make a simple hyperlink in XAML?

后端 未结 8 1244
轻奢々
轻奢々 2020-12-08 02:03

All I want to do is make a little hyperlink in XAML. I\'ve tried everything. I give up.

What is the syntax for this?



        
8条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 03:04

    You may find that if you're binding to anything other than simple text values you will need to use ContentPresenter otherwise nothing will appear, this could be true if you're binding to an XML data source.

    A Property Trigger for IsMouseOver gives the text an underline.

    An example where I"m binding to XML is presented below.

    
    

提交回复
热议问题