我的照片
姓名:

I worked in Aspen Iechnology Inc. My work focus on InfoPlus.21

2009年6月25日星期四

Summary -- ItemsControl

Summary for ItemsControl

This is a summary for this article

http://www.drwpf.com/blog/Home/tabid/36/EntryId/13/Default.aspx

 

1, what is ItemsControl?

It is the base class of every native WPF control that presents a collection of items, including but not limited to the following:

ComboBox

Menu

ContextMenu

ListBox

ListView

TabControl

ToolBar

TreeView

 

2, Is a Panel an ItemsControl?

No.  The logical children of a panel are UIElements, whereas the logical children of an ItemsControl (its Items) can be any CLR objects.

So what is a panel?  The main role of a panel is to provide layout support for its children.  Although a panel does maintain a collection of child elements, it is not technically a WPF “control”…  That is, it does not derive from the Control base class and it does not support the WPF notion of templating.  Instead, it is a single element with a single purpose… namely, to size and position (a.k.a., measure and arrange) its children

 

 


This e-mail and any attachments are intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified any dissemination, distribution or copying of this email, and any attachments thereto, is strictly prohibited. If you receive this email in error please immediately notify the sender and permanently delete the original copy and any copy of any e-mail, and any printout thereof.

0 条评论:

发表评论

订阅 博文评论 [Atom]

<< 主页