Toggleswitch for Windows Phone 7

Source: Internet
Author: User

The toggleswitch control is Silverlight.ForWindowsPhoneToolkit The switch control in the control package.

Its XAML code is:

 

View code

1 <grid X: Name = "layoutroot" background = "Transparent">
2 <grid. rowdefinitions>
3 <rowdefinition Height = "Auto"/>
4 <rowdefinition Height = "*"/>
5 </grid. rowdefinitions>
6 <Toolkit: toggleswitch ischecked = "true" grid. row = "1" header = "toggle control" Height = "116" horizontalalignment = "Left" margin =, 456 "name =" toggleswitment "verticalalignment =" TOP "width =" "/>

 

-- Custom style controls
 

View code

1 <Toolkit: toggleswitch grid. row = "1" header = "toggleswitch" Height = "140" horizontalalignment = "Left" margin = "12,150, 456 "name =" toggleswitch2 "verticalalignment =" TOP "width =" ">
2 <Toolkit: toggleswitch. headertemplate>
3 <datatemplate>
4 <contentcontrol fontsize = "30" content = "test"> </contentcontrol>
5 </datatemplate>
6 </Toolkit: toggleswitch. headertemplate>
7 <Toolkit: toggleswitch. contenttemplate>
8 <datatemplate>
9 <textblock text = "change its subject"> </textblock>
10 </datatemplate>
11 </Toolkit: toggleswitch. contenttemplate>
12 </Toolkit: toggleswitch>
13 </GRID>
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.