WPF and Silverlight Learning notes (10): WPF control model

Source: Internet
Author: User
Tags abstract contains silverlight

The way in which WPF inherits the control's type is as follows

(The class represented by the green is an abstract class, and the class in Blue is Non-abstract)

Control content Model

System.Windows.Controls.Control class: A base class that represents a user interface (UI) element that uses ControlTemplate to define its appearance

Contentcontrol:contentcontrol is a control that contains a piece of content

Description ContentControl is a control that contains a piece of content.
Content Properties Content
Content model Information Control content Model Overview
Types that belong to this type of series Button, ButtonBase, CheckBox, ComboBoxItem, ContentControl, Frame, Gridviewcolumnheader, Groupitem, Label, ListBoxItem, ListViewItem, NavigationWindow, RadioButton, RepeatButton, ScrollViewer, StatusBarItem, ToggleButton, ToolTip, UserControl, Window
Types that can contain ContentControl types ContentControl class, HeaderedContentControl class, ItemsControl class, HeaderedItemsControl class, Panel class, Decorator class and Adorner class
Sub Category HeaderedContentControl class

HeaderedContentControl: A ContentControl that contains a piece of content and has a Header

ItemsControl: Control that can contain multiple items (such as strings, objects, or other elements)

Description ItemsControl is a control that can contain multiple items, such as strings, objects, or other elements.
Content Properties Items, ItemsSource
Main content Type Multiple items, which can be strings, objects, or other elements.
Content model Information Control content Model Overview
Types that belong to this type of series Menu, Menubase, ContextMenu, ComboBox, ItemsControl, ListBox, ListView, TabControl, TreeView, Selector, StatusBar
Types that can contain ItemsControl types ContentControl class, HeaderedContentControl class, ItemsControl class, HeaderedItemsControl class, Panel class, Decorator class and Adorner class
Sub Category
Description HeaderedContentControl is a ContentControl that contains a piece of content and has a Header.
Content Properties Content, Header
Content model Information Control content Model Overview
Types that belong to this type of series Expander, GroupBox, HeaderedContentControl, TabItem
Types that can contain HeaderedContentControl types ContentControl class, HeaderedContentControl class, ItemsControl class, HeaderedItemsControl class, Panel class, Decorator class and Adorner class
HeaderedItemsControl class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.