After PDC 10, many developers moved their eyes to the mobile application development platform. Windows Phone 7 is one of the mobile application platforms and the latest mobile platform operating system launched by Microsoft. As the core development technology of Windows Phone 7, Silverlight once again demonstrates its powerful functions and advantages. To facilitate Windows Phone 7 developers to create applications, the Microsoft Silverlight team has released a set of Silverlight for Windows Phone Toolkit development controls. Currently, more than 10 independent controls are included for the Windows Phone development platform. November 3, Silverlight
For Windows Phone Toolkit development control package upgrade, four new Windows Phone controls are introduced:
- AutoCompleteBox
- ListPicker
- LongListSelector
- Page Transitions
AutoCompleteBoxThis control is no stranger to everyone. It is often used on Google and Baidu search engine platforms. It can automatically search for relevant characters and associate the input text.
<Toolkit: AutoCompleteBox ItemsSource = "{StaticResource words}"/>
ListPickerThe control is similar to the ComboBox control. When a user selects the control, a list of options is displayed, from which the user can select the required options.
<Toolkit: ListPicker Header = "background"> <br/> <sys: String> Option 1 </sys: String> <br/> <sys: string> Option 2 </sys: String> <br/> <sys: String> Option 3 </sys: String> <br/> </toolkit: ListPicker>
LongListSelectorThis control is an extension of the ListBox control. Based on the original ListBox, some special functions are added, such as parallel list and grouping list.
<Toolkit: longListSelector <br/> ItemsSource = "{StaticResource movies}" <br/> ListHeaderTemplate = "{StaticResource movieListHeader}" <br/> GroupHeaderTemplate = "{StaticResource identifier}" <br/> GroupFooterTemplate = "{StaticResource movieGroupFooter}" <br/> GroupItemTemplate = "{StaticResource groupItemHeader}" <br/> ItemTemplate = "{StaticResource movieItemTemplate}"> <br/> </ toolkit: longListSelector>
Page TransitionsTo provide page animation switching effect.
RootFrame = new TransitionFrame ();
<Toolkit: TransitionService. navigationInTransition> <br/> <toolkit: NavigationInTransition. backward> <br/> <toolkit: TurnstileTransition Mode = "BackwardIn"/> <br/> </toolkit: NavigationInTransition. backward> <br/> <toolkit: NavigationInTransition. forward> <br/> <toolkit: TurnstileTransition Mode = "ForwardIn"/> <br/> </toolkit: NavigationInTransition. forward> <br/> </toolkit: NavigationInTransition> <br/> </toolkit: TransitionService. navigationInTransition> <br/> <toolkit: TransitionService. navigationOutTransition> <br/> <toolkit: NavigationOutTransition. backward> <br/> <toolkit: TurnstileTransition Mode = "BackwardOut"/> <br/> </toolkit: NavigationOutTransition. backward> <br/> <toolkit: NavigationOutTransition. forward> <br/> <toolkit: TurnstileTransition Mode = "ForwardOut"/> <br/> </toolkit: NavigationOutTransition. forward> <br/> </toolkit: NavigationOutTransition> <br/> </toolkit: TransitionService. navigationOutTransition> <br/>
In addition to the above four new controls, the current Silverlight for Windows Phone Toolkit also includes the following controls:
- GestureService/GestureListener
- ContextMenu
- DatePicker
- TimePicker
- ToggleSwitch
- WrapPanel
Silverlight for Windows Phone Toolkit is an open-source project. You can download the project source code and routine code on the project official website for reference.