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.