articles

Home / DeveloperSection / Articles / WPF controls

WPF controls

Vijay Shukla8221 20-Jul-2013

In this Article I am trying to explain the concept of WPF controls.

WPF provides a comprehensive set of controls. If these controls do not provide the behavior that your applications require, you can easily build your own custom controls.

Standard Controls

The standard controls that are implemented by WPF derive from the Control base class, either directly or indirectly, and include the following:

Editing:-
Check box

You can use a Checkbox in the user interface (UI) of your application to represent options that a user can select or clear. You can use a single check box or you can group two or more check boxes.

ComboBox

The ComboBox control presents users with a list of options. The list is shown and hidden as the control expands and collapses. In its default state, the list is collapsed, displaying only one choice. The user clicks a button to see the complete list of options.

PasswordBox

The PasswordBox control is used to input sensitive or private information.

RadioButton

RadioButton controls are usually grouped together and provide a way to offer users a single choice among several options since only one button at a time can be selected.

RichTextBox

The RichTextBox element defines an editing control with built-in support for features such as cut and paste, rich document presentation, and content selection.

Slider

The Slider allows you select from a range of values by moving a Thumb along a Track.

TextBox

The TextBox control provides support for basic text input in WPF applications.

List Selection
ListBox

A ListBox control provides users with a list of selectable items.

ListView

The ListView control provides the infrastructure to display a set of data items in different layouts or views.

TreeView

The TreeView control displays information in a hierarchical structure by using collapsible nodes.

User Information:
Label

Label controls provide information through the text of the label.

ProgressBar

A ProgressBar indicates the progress of an operation. The ProgressBar control consists of a window that is filled with the system highlight color as an operation progresses.

Popup

The Popup control displays content in a separate window that floats over the current application window.

ToolTip

A tooltip is a small pop-up window that appears when a user pauses the mouse pointer over an element, such as over a Button.

Action
Button

A Button control reacts to user input from a mouse, keyboard, stylus or other input device, and raises a Click event. A Button is a basic user interface (UI) component that can contain simple content like text and can also contain complex content, such as images and Panel controls.

ContextMenu

The ContextMenu allows a control to display a Menu that is specific to the context of the control. Typically, the ContextMenu is exposed in the user interface (UI) through the right-click of the mouse button or through the keyboard’s menu button.

Menu

A Menu is a control that allows hierarchal organization of elements associated with commands or event handlers. Each Menu can contain multiple MenuItem controls. Each MenuItem can invoke a command or invoke a Click handler. A MenuItem can also have multiple MenuItem elements as children, forming a submenu.

Separator

A Separator control draws a line, horizontal or vertical, between items in controls, such as ListBox, Menu, and ToolBar.

StatusBar

A StatusBar is a horizontal area at the bottom of a window where an application can display status information.

ToolBar

The ToolBar control is a container for a group of commands or controls which are typically related in their function.

Appearance
Image

The Image element is used to display bitmap images in Windows Presentation Foundation (WPF) applications.

Viewbox

The Viewbox control is used to stretch or scale a child element.

Dialog boxes
OpenFileDialog

OpenFileDialog box a common dialog box that allows a user to specify a filename for one or more files to open. This class cannot be inherited

PrintDialog

The PrintDialog control is used to instantiate a standard print dialog box that automatically configures a PrintTicket and PrintQueue according to user input.

SaveFileDialog

SaveFileDialog a common dialog that allows the user to specify a filename to save a file as. SaveFileDialog cannot be used by an application that is executing under partial trust.

Containers 
Expander

An Expander allows a user to view a header and expand that header to see further details, or to collapse a section up to a header.

GroupBox

The GroupBox control is a HeaderedContentControlthat provides a titled container for graphical user interface (GUI) content.

RepeatButton

The RepeatButton is similar to a Button. However, RepeatButton elements give you control over when and how the Click event occurs.

ScrollBar

A ScrollBar allows you to view content that is outside of the current viewing area by sliding the Thumb to make the content visible.

ScrollViewer

The ScrollViewer control creates a scrollable region wherein content can be scrolled horizontally or vertically.

TabControl

TabControl elements display content on discrete pages accessed by selecting the appropriate tab. Each tab contains a TabItem.

Layout
Canvas

Canvas is a layout control that enables absolute positioning of child elements.

DockPanel

The DockPanel element is used to position child content along the edge of a layout container.

Grid

The Grid element is used to precisely position content in rows and columns.

GridSplitter

The GridSplitter redistributes space between columns or rows of a Grid control.

Panel

Panel is the base class for all elements that support application layout in Windows Presentation Foundation (WPF).

StackPanel

The StackPanel element is used to stack child elements horizontally or vertically.

WrapPanel

The WrapPanel element positions child elements in sequential position from left to right, breaking content to the next line at the edge of its containing box.

Navigation
Frame

The Frame control supports content navigation within content. Frame can be hosted by a root element like Window, NavigationWindow, Page, UserControl, FlowDocument, or as an island within a content tree that belongs to a root element.

Hyperlink

Hyperlink enforces a strong content model for child content. See TextElement Content Model Overview for more information about the Hyperlink content model.

Documents
DocumentViewer

The DocumentViewer control is used to view FixedDocument content (such as XML Paper Specification (XPS) documents) in a paginated format.

FlowDocumentPageViewer

The FlowDocumentPageViewer control is used to view FlowDocument content on a per page basis. Contrast with the FlowDocumentScrollViewer, which presents FlowDocument content in a scrolling viewer.

FlowDocumentReader

The FlowDocumentReader control is used to view FlowDocument content. It supports multiple viewing modes.

FlowDocumentScrollViewer

The FlowDocumentScrollViewer control is used to view FlowDocument content in a scrolling container. Contrast with FlowDocumentPageViewer, which views content on a per page basis.

 


Updated 28-Nov-2017

Leave Comment

Comments

Liked By