Learning Windows Phone7 development together (October 1 Windows Phone7 Toolkit)

Source: Internet
Author: User
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

 

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.