Control skew of Windows Phone

Source: Internet
Author: User

In Windows Phone 7 system settings, the button has a click skew effect, but the added control does not. However, Microsoft provides the code for this effect: tilteffect

Msdn Introduction: http://msdn.microsoft.com/zh-cn/library/ff941108 (V = vs.92). aspx

First download the example here: http://go.microsoft.com/fwlink? Linkid = 200720

Add tilteffect. CS to your project, change the namespace of the file, and then modify the XAML page with the skew effect:

Add the following in the header declaration:

Xmlns: Local = "CLR-namespace: [namespace]"
Local: tilteffect. istiltenabled = "true"
 

OK.

If you want to separately set a control to not use this effect, you can separately set the property local: tilteffect. suppresstilt = "true"

Description: istiltenabled is a dependency attribute. This attribute is added to the root position of the page to spread the skew effect to all the controls you have created. You can set the skew effect to a global application, or you can only apply it to a single control. In addition, the resstilt dependency attribute is used to suppress the skew effect on a single control.

Related Article

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.