ToggleSwitch
This toggle control is unique to windows phone7 and is not implemented by Silverlight. This control has two states: Checked and Unchecked.
<Toolkit: ToggleSwitch Header = "ToggleSwitch" Height = "116" HorizontalAlignment = "Left" Margin = "74,106, 0, 0 "Name =" toggleswitment "VerticalAlignment =" Top "Width =" 271 "Checked =" toggleSwitch1_Checked "Unchecked =" toggleSwitch1_Unchecked "/>
Private void toggleSwitch1_Checked (object sender, RoutedEventArgs e)
{
}
Private void toggleSwitch1_Unchecked (object sender, RoutedEventArgs e)
{
}
To change the text displayed in the switch status, you can change the Content attribute.
<Toolkit: ToggleSwitch Header = "ToggleSwitch" Content = "no response? "Height =" 116 "HorizontalAlignment =" Left "Margin =" 74,106, 0, 0 "Name =" toggleswitment "VerticalAlignment =" Top "Width =" 271 "Checked =" toggleSwitch1_Checked "Unchecked =" toggleSwitch1_Unchecked "/>
WrapPanel
Like silverlight, silverlight can run well on windows phone7. This control is available inLearn Windows Phone7 development together (13. 10 Silverlight. Toolkit Control)Has been introduced.
Sample Code download: http://www.daisy123.com /? Page_id = 275 toggleswitch.zip