System.Windows.Controls Namespace
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Provides classes to create elements, known as controls, which enable a user to interact with an application.
Some of the controls contained in the System.Windows.Controls namespace documentation are available with the Silverlight runtime, others are only available in the Silverlight SDK. For a list of the controls included in the Silverlight SDK, see Controls by Function. When you use a control from the Silverlight SDK you will need to add a reference to the assembly and include the appropriate XML namespace mapping in XAML.
Classes
Class | Description | |
---|---|---|
AutoCompleteBox | Represents a control that provides a text box for user input and a drop-down that contains possible matches based on the input in the text box. | |
Border | Draws a border, background, or both around another object. | |
Button | Represents a button control. | |
Calendar | Represents a control that enables a user to select a date by using a visual calendar display. | |
CalendarBlackoutDatesCollection | Represents a collection of non-selectable dates in a Calendar. | |
CalendarDateChangedEventArgs | Provides data for the DisplayDateChanged event. | |
CalendarDateRange | Represents a range of dates in a Calendar. | |
CalendarModeChangedEventArgs | Provides data for the DisplayModeChanged event. | |
Canvas | Defines an area within which you can explicitly position child objects by using coordinates that are relative to the area. | |
CheckBox | Represents a control that a user can select (check) or clear (uncheck). | |
ChildWindow | Provides a window that can be displayed over a parent window and blocks interaction with the parent window. | |
CleanUpVirtualizedItemEventArgs | Provides data for the CleanUpVirtualizedItemEvent event. | |
ColumnDefinition | Defines column-specific properties that apply to Grid objects. | |
ColumnDefinitionCollection | Provides access to an ordered, strongly typed collection of ColumnDefinition objects. | |
ComboBox | Represents a selection control that combines a non-editable text box and a drop-down containing a list box that allows users to select an item from a list. | |
ComboBoxItem | Represents a selectable item contained in a ComboBox control. | |
ContentChangedEventArgs | Provides data for the ContentChanged event. | |
ContentControl | Represents a control with a single piece of content. Controls such as Button, CheckBox, and ScrollViewer directly or indirectly inherit from this class. | |
ContentPresenter | Displays the content of a ContentControl. | |
Control | Represents the base class for UI elements that use a ControlTemplate to define their appearance. | |
ControlTemplate | Defines the element tree that is applied as a control template. | |
DataGrid | Displays data in a customizable grid. | |
DataGridAutoGeneratingColumnEventArgs | Provides data for the DataGrid.AutoGeneratingColumn event. | |
DataGridBeginningEditEventArgs | Provides data for the DataGrid.BeginningEdit event. | |
DataGridBoundColumn | Represents a DataGrid column that can bind to a property in the grid's data source. | |
DataGridCell | Represents an individual DataGrid cell. | |
DataGridCellEditEndedEventArgs | Provides data for the CellEditEnded event. | |
DataGridCellEditEndingEventArgs | Provides data for the CellEditEnding event. | |
DataGridCheckBoxColumn | Represents a DataGrid column that hosts CheckBox controls in its cells. | |
DataGridColumn | Represents a DataGrid column. | |
DataGridColumnEventArgs | Provides data for DataGrid column-related events. | |
DataGridColumnReorderingEventArgs | Provides data for the ColumnReordering event. | |
DataGridLengthConverter | Converts instances of other types to and from DataGridLength instances. | |
DataGridPreparingCellForEditEventArgs | Provides data for the DataGrid.PreparingCellForEdit event. | |
DataGridRow | Represents a DataGrid row. | |
DataGridRowClipboardEventArgs | Provides data for the CopyingRowClipboardContent event. | |
DataGridRowDetailsEventArgs | Provides data for the DataGrid.LoadingRowDetails, DataGrid.UnloadingRowDetails, and DataGrid.RowDetailsVisibilityChanged events. | |
DataGridRowEditEndedEventArgs | Provides data for the RowEditEnded event. | |
DataGridRowEditEndingEventArgs | Provides data for the RowEditEnding event. | |
DataGridRowEventArgs | Provides data for DataGrid row-related events. | |
DataGridRowGroupHeader | Represents the header of a DataGrid row group. | |
DataGridRowGroupHeaderEventArgs | Provides data for the LoadingRowGroup and UnloadingRowGroup events. | |
DataGridTemplateColumn | Represents a DataGrid column that hosts template-specified content in its cells. | |
DataGridTextColumn | Represents a DataGrid column that hosts textual content in its cells. | |
DataPager | Provides a user interface for paging through a collection of data. | |
DatePicker | Represents a control that allows the user to select a date. | |
DatePickerDateValidationErrorEventArgs | Provides data for the DateValidationError event. | |
DateTimeTypeConverter | Provides a converter to convert DateTime objects to and from other representations. | |
DescriptionViewer | Displays a description and tracks error state for an associated control. | |
DrawEventArgs | Provides data for the Draw event. | |
DrawingSurface | Defines an area within which 3-D content can be composed and rendered. | |
FocusingInvalidControlEventArgs | Provides data for the FocusingInvalidControl event. | |
Frame | Represents a control that supports navigation to and from Silverlight pages. | |
Grid | Defines a flexible grid area that consists of columns and rows. | |
GridSplitter | Represents a control that redistributes space between the rows of columns of a Grid control. | |
HeaderedItemsControl | Represents a control that contains a header and collection of items. | |
HyperlinkButton | Represents a button control that displays a hyperlink. | |
Image | Represents a control that displays an image in the JPEG or PNG file formats. | |
InkPresenter | Implements a rectangular surface that displays ink strokes. | |
ItemCollection | Holds the list of items that represent the content of an ItemsControl. | |
ItemContainerGenerator | Provides mappings between the items of an ItemsControl and their container elements. | |
ItemsControl | Represents a control that can be used to present a collection of items. | |
ItemsPanelTemplate | Specifies the panel that the ItemsPresenter creates for the layout of the items of an ItemsControl. | |
ItemsPresenter | Specifies where items are placed in a control, usually an ItemsControl. | |
Label | Displays a caption, required field indicator, and validation error indicator for an associated control. | |
ListBox | Contains a list of selectable items. | |
ListBoxItem | Represents a selectable item in a ListBox. | |
MediaElement | Represents an object that contains audio, video, or both. | |
MultiScaleImage | Enables users to open a multi-resolution image, which can be zoomed in on and panned across. | |
MultiScaleSubImage | This class holds the properties for each sub-image within the MultiScaleImage. | |
NotifyEventArgs | Provides data for the ScriptNotify event. | |
OpenFileDialog | Provides a dialog box that enables the user to select one or more files. | |
Page | Encapsulates content that can be navigated to by a Frame. | |
Panel | Provides a base class for all Panel elements. Use Panel elements to position and arrange child objects in Silverlight-based applications. | |
PasswordBox | Represents a control for entering passwords. | |
PopulatedEventArgs | Provides data for the AutoCompleteBox.Populated event. | |
PopulatingEventArgs | Provides data for the AutoCompleteBox.Populating event. | |
ProgressBar | Represents a control that indicates the progress of an operation. | |
RadioButton | Represents a button that allows a user to select a single option from a group of options. | |
RichTextBlock | Represents a control that displays read-only rich text. | |
RichTextBlockOverflow | Displays the content that does not fit in a RichTextBlock or another RichTextBlockOverflow instance. | |
RichTextBox | Represents a rich text control that supports formatted text, hyperlinks, inline images, and other rich content. | |
RoutedPropertyChangingEventArgs<T> | Provides event data for various routed events that track property values changing. Typically the events denote a cancellable action. | |
RowDefinition | Defines row-specific properties that apply to Grid elements. | |
RowDefinitionCollection | Provides access to an ordered, strongly typed collection of RowDefinition objects. | |
SaveFileDialog | Provides a dialog box that enables the user to specify options for saving a file. | |
ScrollContentPresenter | Displays the content of a ScrollViewer control. | |
ScrollViewer | Represents a scrollable area that can contain other visible elements. | |
SelectedDatesCollection | Represents a set of selected dates in a Calendar. | |
SelectionChangedEventArgs | Provides data for the SelectionChanged event. | |
SelectorSelectionAdapter | Represents the selection adapter contained in the drop-down portion of an AutoCompleteBox control. | |
Slider | Represents a control that lets the user select from a range of values by moving a Thumb control along a track. | |
StackPanel | Arranges child elements into a single line that can be oriented horizontally or vertically. | |
SubImageRoutedEventArgs | Contains state information and event data associated with the SubImageOpenSucceeded and the SubImageOpenFailed routed events. | |
TabControl | Represents a control that contains multiple items that share the same space on the screen. | |
TabItem | Represents a selectable item in a TabControl. | |
TextBlock | Provides a lightweight control for displaying small amounts of text.. | |
TextBox | Represents a control that can be used to display single-format, multi-line text. | |
TextChangedEventArgs | Provides data for the TextChanged event. | |
TextSearch | Enables the user to search a list of items in an ItemsControl using keyboard input. | |
ToolTip | Represents a control that creates a pop-up window that displays information for an element in the UI. | |
ToolTipService | Represents a service that provides static methods to display a tooltip. | |
TreeView | Represents a control that displays hierarchical data in a tree structure that has items that can expand and collapse. | |
TreeViewItem | Provides a hierarchical selectable item for the TreeView control. | |
UIElementCollection | Represents an ordered collection of UIElement objects. | |
UserControl | Provides the base class for defining a new control that encapsulates related existing controls and provides its own logic. | |
Validation | Provides methods and attached properties that support data validation and govern the visual state of the control. | |
ValidationError | Represents a validation error that is generated by the binding engine when an exception occurs during target-to-source updates. | |
ValidationErrorEventArgs | Provides data for the BindingValidationError event. | |
ValidationSummary | Displays a summary of the validation errors on a form. | |
ValidationSummaryItem | Represents an individual validation error. | |
ValidationSummaryItemSource | Represents the source of a ValidationSummaryItem. | |
Viewbox | Defines a content decorator that can stretch and scale a single child to fill the available space. | |
VirtualizingPanel | Provides a framework for Panel elements that virtualize their visual children. | |
VirtualizingStackPanel | Arranges and virtualizes content on a single line that is oriented either horizontally or vertically. | |
WebBrowser | Hosts HTML content within the Silverlight plug-in. | |
WebBrowserBrush | Provides a brush that renders the currently hosted HTML. |
Structures
Structure | Description | |
---|---|---|
DataGridClipboardCellContent | Provides data about DataGrid cell content when it is copied to the clipboard. | |
DataGridLength | Represents the lengths of elements within the DataGrid control. |
Interfaces
Interface | Description | |
---|---|---|
INavigate | Defines a method for internal navigation in a Silverlight application. | |
ISelectionAdapter | Defines an item collection, selection members, and key handling for the selection adapter contained in the drop-down portion of an AutoCompleteBox control. |
Delegates
Delegate | Description | |
---|---|---|
AutoCompleteFilterPredicate<T> | Represents the filter used by the AutoCompleteBox control to determine whether an item is a possible match for the specified text. | |
CleanUpVirtualizedItemEventHandler | Represents the method that handles the VirtualizingStackPanel.CleanUpVirtualizedItemEvent attached events. | |
ContentChangedEventHandler | Represents the method that handles the ContentChanged event. | |
PopulatedEventHandler | Represents the method that will handle the Populated event of a AutoCompleteBox control. | |
PopulatingEventHandler | Represents the method that will handle the Populating event of a AutoCompleteBox control. | |
RoutedPropertyChangingEventHandler<T> | Represents methods that handle various routed events that track property values changing. Typically the events denote a cancellable action. | |
SelectionChangedEventHandler | Represents the method that will handle the SelectionChanged event. | |
SubImageEventHandler | Represents the method that will handle the SubImageOpenSucceeded and the SubImageOpenFailed event. | |
TextChangedEventHandler | Represents the method that will handle the TextBox.TextChanged event. |
Enumerations
Enumeration | Description | |
---|---|---|
AutoCompleteFilterMode | Specifies how text in the text box portion of the AutoCompleteBox control is used to filter items specified by the ItemsSource property for display in the drop-down. | |
CalendarMode | Specifies values for the different modes of operation of a Calendar. | |
CalendarSelectionMode | Specifies values that describe the available selection modes for a Calendar. | |
ClickMode | Specifies when the Click event should be raised for a control. | |
DataGridClipboardCopyMode | Specifies whether content can be copied to the clipboard from a DataGrid control. If the content can be copied, specifies whether column headers are copied. | |
DataGridEditAction | Specifies constants that define what action was taken to end an edit. | |
DataGridEditingUnit | Specifies constants that define whether editing is enabled on a cell level or on a row level. | |
DataGridGridLinesVisibility | Specifies constants that define which grid lines separating DataGrid inner cells are shown. | |
DataGridHeadersVisibility | Specifies constants that define which DataGrid header cells are displayed. | |
DataGridLengthUnitType | Defines constants that describe how DataGrid elements, such as columns, are sized. | |
DataGridRowDetailsVisibilityMode | Specifies constants that define when DataGrid row details are displayed. | |
DataGridSelectionMode | Specifies constants that define the DataGrid selection modes. | |
DatePickerFormat | Specifies date formats for a DatePicker. | |
Dock | Specifies values that control the behavior of a control positioned inside another control. | |
ManipulationMode | Specifies how manipulations are handled for ScrollViewer behavior. | |
Orientation | Defines the different orientations that a control or layout can have. | |
PagerDisplayMode | Specifies how the page controls are displayed on a DataPager control. | |
ScrollBarVisibility | Specifies the visibility of a scrollbar within a ScrollViewer control. | |
SelectionMode | Defines the selection behavior for a ListBox. | |
StretchDirection | Describes the direction that content is scaled. | |
ValidationErrorEventAction | Describes the reason a BindingValidationError event has occurred. | |
ValidationSummaryFilters | Specifies the types of errors displayed in an ValidationSummary control. | |
ValidationSummaryItemType | Specifies whether a validation error came from object-level or property-level validation. | |
VirtualizationMode | Specifies the method the VirtualizingStackPanel uses to manage virtualizing its child items. |