Learn about Windows Phone7 Development (13.10 Silverlight.toolkit controls)

Source: Internet
Author: User
Tags silverlight

Silverlight.toolkit is a collection of Silverlight controls, parts, and utilities that are published outside of normal Silverlight. A product of the Microsoft Silverlight team, it quickly adds new functionality to designers and developers, and provides community help to create an effective way to build product development by contributing ideas and error reporting. It contains complete open source code, unit tests, instances and documents, styles, layouts, and user input for more than 26 new controls. But this collection is not fully supported in the Phone7.

To use this collection you need to download this package:

http://silverlight.codeplex.com/releases/view/43528

1.WrapPanel: This Panel control is mainly arranged from left to right or from top to bottom by the Orientation property setting, which will automatically go to the next row or column when the element exceeds the edge of the control. This control is typically used for text layouts, color picker, pictures, and more. Need to load System.Windows.Controls.Toolkit.dll

Xaml:

<controlstoolkit:wrappanel x:name= "WP1" margin= "15,0,15,201" grid.row= "1" width= "" height= "300" Verticalalignment= "Bottom" orientation= "Horizontal"/>

Source:

for (int i = 0; i < i++)
{
Wp1. Children.add (New Rectangle () {Height =, Width = +, Fill = new SolidColorBrush (Colors.yellow)});
Wp1. Children.add (New Rectangle () {Height =, Width = +, Fill = new SolidColorBrush (colors.purple)});
Wp1. Children.add (New Rectangle () {Height =, Width = +, Fill = new SolidColorBrush (colors.red)});
Wp1. Children.add (New Rectangle () {Height =, Width = +, Fill = new SolidColorBrush (Colors.black)});
Wp1. Children.add (New Rectangle () {Height =, Width = +, Fill = new SolidColorBrush (Colors.brown)});
Wp1. Children.add (New Rectangle () {Height =, Width = +, Fill = new SolidColorBrush (Colors.cyan)});
Wp1. Children.add (New Rectangle () {Height =, Width = +, Fill = new SolidColorBrush (Colors.darkgray)});
Wp1. Children.add (New Rectangle () {Height =, Width = +, Fill = new SolidColorBrush (Colors.green)});
Wp1. Children.add (New Rectangle () {Height =, Width = +, Fill = new SolidColorBrush (Colors.magenta)});

}

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.