#179 – Panel Controls Contain UIElement Children

Elements that act as containers for multiple controls are known as panels, inheriting from Panel.  A panel can contain one or more children, each deriving from UIElement.

Some examples of classes deriving from Panel include:

  • Canvas
  • DockPanel
  • Grid
  • TabPanel
  • UniformGrid
  • StackPanel
  • DataGridCellsPanel
  • VirtualizingStackPanel
  • WrapPanel

Any object that inherits from UIElement, directly or indirectly, can be hosted in a panel.

Examples of objects that can be hosted in a panel include (indentation indicates inheritance):

  • A ContentPresenter
  • Subclasses of Control
    • Calendar
    • Subclasses of ContentControl
      • Label
      • ListBoxItem
      • Subclasses of ButtonBase
        • Button
        • RepeatButton
        • ToggleButton
      • ScrollViewer
      • UserControl
    • DatePicker
    • Subclasses of ItemsControl
      • Subclasses of HeaderedItemsControl
        • MenuItem
        • Toolbar
      • Subclasses of MenuBase
        • ContextMenu
        • Menu
      • Subclasses of Selector
        • ComboBox
        • ListBox
        • Subclasses of MultiSelector
          • DataGrid
        • TabControl
      • StatusBar
      • TreeView
    • PasswordBox
    • Subclasses of RangeBase
      • ScrollBar
      • ProgressBar
      • Slider
    • Subclasses of TextBoxBase
      • RichTextBox
      • TextBox
    • Separator
  • Image
  • InkCanvas
  • An ItemsPresenter
  • MediaElement
  • Page
  • Another Panel
  • TextBlock
  • Viewport3D
  • Subclasses of Shape
    • Ellipse
    • Line
    • Path
    • Polygon
    • Polyline
    • Rectangle
About these ads

About Sean
Software developer in the Twin Cities area, passionate about .NET technologies. Equally passionate about my own personal projects related to family history and preservation of family stories and photos.

2 Responses to #179 – Panel Controls Contain UIElement Children

  1. Pingback: #883 – ScrollViewer Is a ContentControl | 2,000 Things You Should Know About WPF

  2. Pingback: #995 – ListBox Uses UI Virtualization by Default | 2,000 Things You Should Know About WPF

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 311 other followers

%d bloggers like this: