Wp7hyperlinkbutton remove underline

Source: Internet
Author: User

You can use custom templates to solve this problem.

The idea is to set the content attribute of hyperlinkbutton to null and then add a textblock to controltemeplate to display the text without a slide line.

<Hyperlinkbutton Height = "30" horizontalalignment = "Left" margin = "200, 90," name = "hyperlinkbutton2" verticalignment = "TOP" width = "" navigateuri = "/mainpage. XAML ">  

 

But later I see the book saying that this setting is not good, because the content attribute of hyperlinkbutton is the object attribute, so we can set values of the image, panel, and other types.

The method provided in the book is to use the content attribute of contentpresenter to set it because it is also the object type. In addition, it can bind the content attribute value of hyperlinkbutton itself and it does not have a slide line.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.