Silverlight项目开发中,在Xaml文件中调用控件前,需要添加其对应引用,有时根本记不住某个控件具体位于哪个装配文件中,这里提供一个常用控件的装配文件对照表,方便大家在开发Silverlight项目时参考使用。这里需要注意,相对比前期版本,Silverlight 4控件对应的装配文件略微有些改变,有时转换Silverlight 2/3版本到Silverlight 4,同时需要重新添加对应控件引用文件。
控件名称 |
装配文件 |
Accordian |
System.Windows.Controls.Layout.Toolkit.dll |
AutoCompleteBox |
System.Windows.Controls.Input.dll |
BusyIndicator |
System.Windows.Controls.Toolkit.dll |
Button |
System.Windows.dll |
Calendar |
System.Windows.Controls.dll |
Chart |
System.Windows.Controls.DataVisualization.Toolkit.dll |
CheckBox |
System.Windows.dll |
ChildWindow |
System.Windows.Controls.dll |
ComboBox |
System.Windows.dll |
ContextMenu |
System.Windows.Input.Toolkit.dll |
DataForm |
System.Windows.Controls.Data.DataForm.Toolkit.dll |
DataGrid |
System.Windows.Controls.Data.dll |
DataPager |
System.Windows.Controls.Data.dll |
DatePicker |
System.Windows.Controls.dll |
DockPanel |
System.Windows.Controls.Toolkit.dll |
Expander |
System.Windows.Controls.Toolkit.dll |
Frame |
System.Windows.Controls.Navigation.dll |
GlobalCalendar |
System.Windows.Controls.Toolkit.dll |
GridSplitter |
System.Windows.Controls.dll |
HyperlinkButton |
System.Windows.dll |
Image |
System.Windows.dll |
Label |
System.Windows.Controls.Data.Input.dll |
ListBox |
System.Windows.dll |
MediaElement |
System.Windows.dll |
MultiScaleImage |
System.Windows.dll |
NumericUpDown |
System.Windows.Controls.Input.Toolkit.dll |
Page |
System.Windows.Controls.Navigation.dll |
PasswordBox |
System.Windows.dll |
ProgressBar |
System.Windows.dll |
RadioButton |
System.Windows.dll |
Rating |
System.Windows.Controls.Input.Toolkit.dll |
RichTextBox |
System.Windows.dll |
ScrollViewer |
System.Windows.dll |
Slider |
System.Windows.dll |
TabControl |
System.Windows.Controls.dll |
TextBlock |
System.Windows.dll |
TextBox |
System.Windows.dll |
TimePicker |
System.Windows.Controls.Input.Toolkit.dll |
TimeUpDown |
System.Windows.Controls.Input.Toolkit.dll |
ToggleButton |
System.Windows.dll |
ToolTip |
System.Windows.dll |
TreeMap |
System.Windows.Controls.DataVisualization.Toolkit.dll |
TreeView |
System.Windows.Controls.dll |
ValidationSummary |
System.Windows.Controls.Data.Input.dll |
ViewBox |
System.Windows.dll |
WebBrowser |
System.Windows.dll |
WrapPanel |
System.Windows.Controls.Toolkit.dll |
欢迎大家加入“专注Silverlight”QQ技术群,目前,1-6群都已经满员,新开500人七群,欢迎大家加入一起学习讨论Silverlight&WPF开发技术。
22308706(一群) 超级群500人满
37891947(二群) 超级群500人满
100844510(三群) 高级群200人满
32679922(四群) 超级群500人满
23413513(五群) 高级群200人满
32679955(六群) 超级群500人满
61267622(七群 推荐) 超级群500人未满