Silverlight Toolkit November 2010 Update - What's New
published on: 11/8/2010 | Views: N/A | Tags: WP7Toolkit
Silverlight Toolkit offers developers additional controls for Windows Phone application development, designed to match the rich user experience of the Windows Phone 7.
This is the first in a series of blog posts which run through the new controls from the Silverlight Toolkit November 2010 update. If you're not familiar with the Toolkit, check out the intro post of Tim Heuer that cover all about the Existing Components :Gestures, ContextMenu, DatePicker, TimePicker, ToggleSwitch and WrapPanel.
The November update includes the following new controls.
o AutoCompleteBox
o ListPicker
o LongListSelector
o Page Transitions
In order to use them, first add a reference to Microsoft.Phone.Controls.Toolkit.dll which is installed with the toolkit and you can find it in :
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Toolkit\Nov10\Bin\Microsoft.Phone.Controls.Toolkit.dll
After that you can use the controls with the toolkit prefix:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
AutoCompleteBox
AutoCompleteBox represents a control that provides a text box for user input and a drop-down that contains possible matches based on the input in the text box.It is very important for implementing search or relevant matches functionality.
Example:
<toolkit:AutoCompleteBox ItemsSource="{StaticResource words}"/>
ListPicker
ListPicker is the Windows Phone 7 equivalent of the ComboBox control. It has two kinds of list selection:
. In-place list selection
. Fullscreen popup for picking among more items
It is a standard ItemsControl subclass with all the common elements of a Selector.
Example:
<toolkit:ListPicker Header="background">
<sys:String>dark</sys:String>
<sys:String>light</sys:String>
<sys:String>dazzle</sys:String>
</toolkit:ListPicker>
LongListSelector
It is more popular as "Jump Grid" or "Jump List" actually it is an advanced ListBox, that supports:
. full data
. UI virtualization
. flat lists
. grouped lists with headers
Example:
<toolkit:LongListSelector
ItemsSource="{StaticResource movies}"
ListHeaderTemplate="{StaticResource movieListHeader}"
GroupHeaderTemplate="{StaticResource movieGroupHeader}"
GroupFooterTemplate="{StaticResource movieGroupFooter}"
GroupItemTemplate="{StaticResource groupItemHeader}"
ItemTemplate="{StaticResource movieItemTemplate}">
</toolkit:LongListSelector>
Page Transitions
The following transition animations are available in the Nov 2010 Toolkit update:
. Roll
. Rotate
. Slide,
. Swivel
. Turnstile
It's also possible to implement custom transitions using the same framework!
Based on the selected Transition you can set the Transition mode.
Example:
<toolkit:TransitionService.NavigationInTransition>
<toolkit:NavigationInTransition>
<toolkit:NavigationInTransition.Backward>
<toolkit:TurnstileTransition Mode="BackwardIn"/>
</toolkit:NavigationInTransition.Backward>
<toolkit:NavigationInTransition.Forward>
<toolkit:TurnstileTransition Mode="ForwardIn"/>
</toolkit:NavigationInTransition.Forward>
</toolkit:NavigationInTransition>
</toolkit:TransitionService.NavigationInTransition>
The sample application that come with the official Windows Phone Toolkit download offers a great overview of the controls but doesn't focus on some specific details. This series is all about details, so in the next few posts I will explain everything you need to know about each of the new components in depth.
You can also follow us on Twitter @winphonegeek
Comments
posted by: on 11/16/2010 7:19:58 PM
posted by: on 11/16/2010 10:31:23 PM
Our Top Articles & Free books
- Our FREE e-book: "Windows Phone Toolkit In Depth" 2nd edition
- 400+ Windows Phone Development articles in our Article Index
- 21 WP7 Toolkit in Depth articles covering all controls
- 12 WP7 Coding4Fun Toolkit in Depth articles covering all controls
- Performance Tips when creating WP7 apps
- Creating a WP7 Custom Control in 7 Steps
- WP7 working with VisualStates: How to make a ToggleSwitch from CheckBox
- What makes a WP7 App successful
- Creating theme friendly UI in WP7 using OpacityMask
- Implementing Windows Phone 7 DataTemplateSelector and CustomDataTemplateSelector
- All about Splash Screens in WP7 – Creating animated Splash Screen
- Getting Started with Unit Testing in Silverlight for WP7
- WP7 WatermarkedTextBox custom control
Our Top Tips & Samples
- All about WP7 Isolated Storage series
- WP7 Dynamically Generating DataTemplate in code
- 5 tips for a successful WP7 Marketplace submission
- WP7: Navigating to a page in different assembly
- WP7 ContextMenu: answers to popular questions
- WP7 ListBox: answers to popular questions
- WP7 working with Images: Content vs Resource build action
- WP7 Element Binding samples
- WP7 working with XML: reading, filtering and databinding
- Drawing in WP7: #2 Drawing shapes with finger
- WP7 TextBox Light theme problems - the solution
- Changing the WP7 Panorama Background Image dynamically with Animation
