Windows Phone 7雖然使用了silverlight的技術,但是并不是silverlight所有的控件對于Windows Phone 7都是适用的,同時Windows Phone 7也有一些Silverlight沒有的控件。下面将簡單介紹下:
一、适用于Windows Phone 7的Silverlight控件
在命名空間 System.Windows.Controls下的以下控件适合于Windows Phone 7的開發。
<a href="http://go.microsoft.com/fwlink/?LinkId=206534">Border</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206535">Button</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206536">Canvas</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206537">CheckBox</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206538">ContentControl</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206539">ContentPresenter</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206540">Control</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206541">Grid</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206542">HyperlinkButton</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206543">Image</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206544">InkPresenter</a>
<a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.itemscontrol%28VS.95%29.aspx">ItemsControl</a>
<a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.itemspresenter%28v=VS.95%29.aspx">ItemsPresenter</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206545">ListBox</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206546">MediaElement</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206547">MultiScaleImage</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206548">Panel</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206549">PasswordBox</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206550">ProgressBar</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206551">RadioButton</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206552">ScrollViewer</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206553">Slider</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206554">StackPanel</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206555">TextBlock</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206556">TextBox</a>
<a href="http://go.microsoft.com/fwlink/?LinkId=206557">UserControl</a>
<a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.virtualizingpanel%28v=VS.95%29.aspx">VirtualizingPanel</a>
<a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.virtualizingstackpanel%28v=VS.95%29.aspx">VirtualizingStackPanel</a>
二、支援Windows Phone 7的控件
在命名空間 Microsoft.Phone.Controls下的
<a href="http://msdn.microsoft.com/en-us/library/ff402543%28v=VS.92%29.aspx">PhoneApplicationFrame Control for Windows Phone</a>
<a href="http://msdn.microsoft.com/en-us/library/ff402539%28v=VS.92%29.aspx">PhoneApplicationPage Control for Windows Phone</a>
地圖控件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
全景圖檔控件Panorama Control
旋轉控件 Pivot Control
浏覽器控件WebBrowser Control
Silverlight工具包的控件 Silverlight for Windows Phone 7 Toolkit controls
<a href="http://www.windowsphonegeek.com/articles/autocompletebox-for-wp7-in-depth">AutoCompleteBox</a>
<a href="http://www.windowsphonegeek.com/articles/listpicker-for-wp7-in-depth">ListPicker</a>
<a href="http://www.windowsphonegeek.com/articles/wp7-longlistselector-in-depth--part1-visual-structure-and-api">LongListSelector</a>
<a href="http://www.windowsphonegeek.com/articles/wp7-transitions-in-depth--key-concepts-and-api">Page Transitions</a>
<a href="http://www.windowsphonegeek.com/articles/WP7-GestureService-in-depth--key-concepts-and-API">GestureService/GestureListener</a>
<a href="http://www.windowsphonegeek.com/articles/WP7-LoopingSelector-in-depth--Part1-Visual-structure-and-API">LoopingSelector</a>
ContextMenu
DatePicker
TimePicker
<a href="http://www.cnblogs.cc2/articles/wp7-toggleswitch-in-depth--key-concepts-and-api" target="_blank">ToggleSwitch</a>
<a href="http://www.cnblogs.cc2/articles/WP7-WrapPanel-in-depth" target="_blank">WrapPanel</a>
HeaderedItemsControl
本文轉自linzheng 51CTO部落格,原文連結:http://blog.51cto.com/linzheng/1078706