Windows Phone 7雖然使用了silverlight的技術,但是並不是silverlight所有的控制項對於Windows Phone 7都是適用的,同時Windows Phone 7也有一些Silverlight沒有的控制項。下面將簡單介紹下:
一、適用於Windows Phone 7的Silverlight控制項
在命名空間 System.Windows.Controls下的以下控制項適合於Windows Phone 7的開發。
- Border
- Button
- Canvas
- CheckBox
- ContentControl
- ContentPresenter
- Control
- Grid
- HyperlinkButton
- Image
- InkPresenter
- ItemsControl
- ItemsPresenter
- ListBox
- MediaElement
- MultiScaleImage
- Panel
- PasswordBox
- ProgressBar
- RadioButton
- ScrollViewer
- Slider
- StackPanel
- TextBlock
- TextBox
- UserControl
- VirtualizingPanel
- VirtualizingStackPanel
二、支援Windows Phone 7的控制項
在命名空間 Microsoft.Phone.Controls下的
地圖控制項Maps
命名空間如下
Microsoft.Phone.Controls.Maps,
Microsoft.Phone.Controls.Maps.AutomationPeers
Microsoft.Phone.Controls.Maps.Core
Microsoft.Phone.Controls.Maps.Design
Microsoft.Phone.Controls.Maps.Overlays
Microsoft.Phone.Controls.Maps.Platform
開發介紹 Using the Silverlight Map Control on Windows Phone 7
全景片控制項Panorama Control
Panorama Control Architecture for Windows Phone
旋轉控制項 Pivot Control
Pivot Control Architecture for Windows Phone
瀏覽器控制項WebBrowser Control
WebBrowser 控制項概述
Silverlight工具包的控制項 Silverlight for Windows Phone 7 Toolkit controls
Silverlight Toolkit
- AutoCompleteBox
- ListPicker
- LongListSelector
- Page Transitions
- GestureService/GestureListener
- LoopingSelector
- ContextMenu
- DatePicker
- TimePicker
- ToggleSwitch
- WrapPanel
- HeaderedItemsControl