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