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>