What are the different kinds of controls in WPF?


WPF controls can be categorized in to four categories:-

  • Control: -This is the basic control with which you will work most of time. For example
    textbox, buttons etc. Now controls which are standalone control like button , text box ,
    labels etc are termed as content control. Now there are other controls which can hold
    other controls, for instance itemscontrols. Itemscontrol can have multiple textbox
    controls, label controls etc.
  • Shape: – These controls help us to create simple graphic controls like Ellipse, line,
    rectangle etc.
  • Panel: – These controls help to align and position the controls. For instance grid helps us
    to align in a table manner, stack panel helps for horizontal and vertical alignment.
  • Content presenter: – This control helps to place any XAML content inside it. Used when
    we want to add dynamic controls on a WPF screen.

All the above four types of WPF controls finally inherit from the frameworkelement class of
WPF.

Controls in WPF

Controls in WPF