แก้ไข

แชร์ผ่าน


System.Windows.Controls Namespace

Provides classes to create elements, known as controls, that enable a user to interact with an application. The control classes are at the core of the user's experience with any application because they allow a user to view, select, or enter data or other information.

Classes

AccessText

Specifies with an underscore the character that is used as the access key.

ActivatingKeyTipEventArgs

Provides data for the ActivatingKeyTip event.

AddingNewItemEventArgs

Provides data for the AddingNewItem event.

AdornedElementPlaceholder

Represents the element used in a ControlTemplate to specify where a decorated control is placed relative to other elements in the ControlTemplate.

AlternationConverter

Converts an integer to and from an object by applying the integer as an index to a list of objects.

BooleanToVisibilityConverter

Represents the converter that converts Boolean values to and from Visibility enumeration values.

Border

Draws a border, background, or both around another element.

BorderGapMaskConverter

Represents a converter that converts the dimensions of a GroupBox control into a VisualBrush.

Button

Represents a Windows button control, which reacts to the Click event.

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 elements by using coordinates that are relative to the Canvas area.

CheckBox

Represents a control that a user can select and clear.

CleanUpVirtualizedItemEventArgs

Provides data for the CleanUpVirtualizedItem event.

ColumnDefinition

Defines column-specific properties that apply to Grid elements.

ColumnDefinitionCollection

Provides access to an ordered, strongly typed collection of ColumnDefinition objects.

ComboBox

Represents a selection control with a drop-down list that can be shown or hidden by clicking the arrow on the control.

ComboBoxItem

Implements a selectable item inside a ComboBox.

ContentControl

Represents a control with a single piece of content of any type.

ContentPresenter

Displays the content of a ContentControl.

ContextMenu

Represents a pop-up menu that enables a control to expose functionality that is specific to the context of the control.

ContextMenuEventArgs

Provides data for the context menu event.

ContextMenuService

Provides the system implementation for displaying a ContextMenu.

Control

Represents the base class for user interface (UI) elements that use a ControlTemplate to define their appearance.

ControlTemplate

Specifies the visual structure and behavioral aspects of a Control that can be shared across multiple instances of the control.

DataErrorValidationRule

Represents a rule that checks for errors that are raised by the IDataErrorInfo implementation of the source object.

DataGrid

Represents a control that displays data in a customizable grid.

DataGridAutoGeneratingColumnEventArgs

Provides data for the AutoGeneratingColumn event.

DataGridBeginningEditEventArgs

Provides data for the BeginningEdit event.

DataGridBoundColumn

Serves as the base class for columns that can bind to a property in the data source of a DataGrid.

DataGridCell

Represents a cell of a DataGrid control.

DataGridCellClipboardEventArgs

Provides data for the CopyingCellClipboardContent and PastingCellClipboardContent events.

DataGridCellEditEndingEventArgs

Provides data for the CellEditEnding event.

DataGridCellsPanel

Represents a panel that lays out cells and column headers in a data grid.

DataGridCheckBoxColumn

Represents a DataGrid column that hosts CheckBox controls in its cells.

DataGridColumn

Represents a DataGrid column.

DataGridColumnEventArgs

Provides data for the ColumnDisplayIndexChanged and ColumnReordered events.

DataGridColumnReorderingEventArgs

Provides data for the ColumnReordering event.

DataGridComboBoxColumn

Represents a DataGrid column that hosts ComboBox controls in its cells.

DataGridHyperlinkColumn

Represents a DataGrid column that hosts Uri elements in its cells.

DataGridLengthConverter

Converts instances of various types to and from instances of the DataGridLength class.

DataGridPreparingCellForEditEventArgs

Provides data for the PreparingCellForEdit event.

DataGridRow

Represents a DataGrid row.

DataGridRowClipboardEventArgs

Provides data for the CopyingRowClipboardContent event.

DataGridRowDetailsEventArgs

Provides data for the LoadingRowDetails, UnloadingRowDetails, and RowDetailsVisibilityChanged events.

DataGridRowEditEndingEventArgs

Provides data for the RowEditEnding event.

DataGridRowEventArgs

Provides data for the LoadingRow and UnloadingRow events.

DataGridSortingEventArgs

Provides data for the Sorting event.

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.

DataTemplateSelector

Provides a way to choose a DataTemplate based on the data object and the data-bound element.

DatePicker

Represents a control that allows the user to select a date.

DatePickerDateValidationErrorEventArgs

Provides data for the DateValidationError event.

Decorator

Provides a base class for elements that apply effects onto or around a single child element, such as Border or Viewbox.

DefinitionBase

Defines the functionality required to support a shared-size group that is used by the ColumnDefinitionCollection and RowDefinitionCollection classes. This is an abstract class.

DockPanel

Defines an area where you can arrange child elements either horizontally or vertically, relative to each other.

DocumentViewer

Represents a document viewing control that can host paginated FixedDocument content such as an XpsDocument.

ExceptionValidationRule

Represents a rule that checks for exceptions that are thrown during the update of the binding source property.

Expander

Represents the control that displays a header that has a collapsible window that displays content.

FlowDocumentPageViewer

Represents a control for viewing flow content in a fixed viewing mode that shows content one page at a time.

FlowDocumentReader

Provides a control for viewing flow content, with built-in support for multiple viewing modes.

FlowDocumentScrollViewer

Provides a control for viewing flow content in a continuous scrolling mode.

Frame

Frame is a content control that supports navigation.

Grid

Defines a flexible grid area that consists of columns and rows.

GridSplitter

Represents the control that redistributes space between columns or rows of a Grid control.

GridView

Represents a view mode that displays data items in columns for a ListView control.

GridViewColumn

Represents a column that displays data.

GridViewColumnCollection

Represents a collection of GridViewColumn objects.

GridViewColumnHeader

Represents a column header for a GridViewColumn.

GridViewHeaderRowPresenter

Represents an object that is used to define the layout of a row of column headers.

GridViewRowPresenter

Represents an object that specifies the layout of a row of data.

GroupBox

Represents a control that creates a container that has a border and a header for user interface (UI) content.

GroupItem

Appears as the root of the visual subtree generated for a group.

GroupStyle

Defines how you want the group to look at each level.

HeaderedContentControl

Provides the base implementation for all controls that contain single content and have a header.

HeaderedItemsControl

Represents a control that contains multiple items and has a header.

Image

Represents a control that displays an image.

InitializingNewItemEventArgs

Provides data for the InitializingNewItem event.

InkCanvas

Defines an area that receives and displays ink strokes.

InkCanvasGestureEventArgs

Provides data for the Gesture event.

InkCanvasSelectionChangingEventArgs

Provides data for the SelectionChanging.

InkCanvasSelectionEditingEventArgs

Provides data for the SelectionMoving and SelectionResizing events.

InkCanvasStrokeCollectedEventArgs

Provides data for the StrokeCollected event.

InkCanvasStrokeErasingEventArgs

Provides data for the StrokeErasing event.

InkCanvasStrokesReplacedEventArgs

Provides data for the StrokesReplaced event.

InkPresenter

Renders ink on a surface.

ItemCollection

Holds the list of items that constitute the content of an ItemsControl.

ItemContainerGenerator

Generates the user interface (UI) on behalf of its host, such as an ItemsControl.

ItemContainerTemplate

Provides the template for producing a container for an ItemsControl object.

ItemContainerTemplateKey

Provides a resource key for an ItemContainerTemplate object.

ItemContainerTemplateSelector

Enables you to select an ItemContainerTemplate for each item within an ItemsControl.

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

Used within the template of an item control to specify the place in the control's visual tree where the ItemsPanel defined by the ItemsControl is to be added.

KeyTipAccessedEventArgs

Provides data for the KeyTipAccessed event.

KeyTipControl

Represents the control used inside the KeyTip.

KeyTipService

Represents a service that provides properties, methods, and events to enable and manage KeyTips in WPF Ribbon controls.

Label

Represents the text label for a control and provides support for access keys.

ListBox

Contains a list of selectable items.

ListBoxItem

Represents a selectable item in a ListBox.

ListView

Represents a control that displays a list of data items.

ListViewItem

Represents an item in a ListView control.

MediaElement

Represents a control that contains audio and/or video.

Menu

Represents a Windows menu control that enables you to hierarchically organize elements associated with commands and event handlers.

MenuItem

Represents a selectable item inside a Menu.

MenuScrollingVisibilityConverter

Represents a data-binding converter to handle the visibility of repeat buttons in scrolling menus.

NotifyDataErrorValidationRule

Represents a rule that checks for errors that are raised by a data source that implements INotifyDataErrorInfo.

Page

Encapsulates a page of content that can be navigated to and hosted by a browser, NavigationWindow, and Frame.

Panel

Provides a base class for all Panel elements. Use Panel elements to position and arrange child objects in Windows Presentation Foundation (WPF) applications.

PasswordBox

Represents a control designed for entering and handling passwords.

PrintDialog

Invokes a standard Microsoft Windows print dialog box that configures a PrintTicket and PrintQueue according to user input and then prints a document.

PrintDialogException

The exception that is thrown when an error condition occurs during the opening, accessing, or using of a PrintDialog.

ProgressBar

Indicates the progress of an operation.

RadioButton

Represents a button that can be selected, but not cleared, by a user. The IsChecked property of a RadioButton can be set by clicking it, but it can only be cleared programmatically.

RichTextBox

Represents a rich editing control which operates on FlowDocument objects.

RowDefinition

Defines row-specific properties that apply to Grid elements.

RowDefinitionCollection

Provides access to an ordered, strongly typed collection of RowDefinition objects.

ScrollChangedEventArgs

Describes a change in the scrolling state and contains the required arguments for a ScrollChanged event.

ScrollContentPresenter

Displays the content of a ScrollViewer control.

ScrollViewer

Represents a scrollable area that can contain other visible elements.

SelectedCellsChangedEventArgs

Provides data for the SelectedCellsChanged event.

SelectedDatesCollection

Represents a set of selected dates in a Calendar.

SelectionChangedEventArgs

Provides data for the SelectionChanged event.

Separator

Control that is used to separate items in items controls.

Slider

Represents a control that lets the user select from a range of values by moving a Thumb control along a Track.

SoundPlayerAction

Represents a lightweight audio playback TriggerAction used to play .wav files.

SpellCheck

Provides real-time spell-checking functionality to text-editing controls, such as TextBox and RichTextBox.

SpellingError

Represents a misspelled word in an editing control (i.e. TextBox or RichTextBox).

StackPanel

Arranges child elements into a single line that can be oriented horizontally or vertically.

StickyNoteControl

Represents a control that lets users attach typed text or handwritten annotations to documents.

StyleSelector

Provides a way to apply styles based on custom logic.

TabControl

Represents a control that contains multiple items that share the same space on the screen.

TabItem

Represents a selectable item inside a TabControl.

TextBlock

Provides a lightweight control for displaying small amounts of flow content.

TextBox

Represents a control that can be used to display or edit unformatted text.

TextChange

Contains information about the changes that occur in the TextChanged event.

TextChangedEventArgs

Provides data for the TextChanged event.

TextSearch

Enables a user to quickly access items in a set by typing prefixes of strings.

ToolBar

Provides a container for a group of commands or controls.

ToolBarTray

Represents the container that handles the layout of a ToolBar.

ToolTip

Represents a control that creates a pop-up window that displays information for an element in the interface.

ToolTipEventArgs

Provides event information for events that occur when a tooltip opens or closes.

ToolTipService

Represents a service that provides properties and events to control the display and behavior of tooltips.

TreeView

Represents a control that displays hierarchical data in a tree structure that has items that can expand and collapse.

TreeViewItem

Implements a selectable item in a TreeView control.

UIElementCollection

Represents an ordered collection of UIElement child elements.

UserControl

Provides a simple way to create a control.

Validation

Provides methods and attached properties that support data validation.

ValidationError

Represents a validation error that is created either by the binding engine when a ValidationRule reports a validation error, or through the MarkInvalid(BindingExpressionBase, ValidationError) method explicitly.

ValidationErrorEventArgs

Provides information for the Error attached event.

ValidationResult

Represents the result returned by the ValidationRule.Validate(Object, CultureInfo) method that indicates whether the checked value passed the ValidationRule.

ValidationRule

Provides a way to create a custom rule in order to check the validity of user input.

ViewBase

Represents the base class for views that define the appearance of data in a ListView control.

Viewbox

Defines a content decorator that can stretch and scale a single child to fill the available space.

Viewport3D

Renders the contained 3-D content within the 2-D layout bounds of the Viewport3D element.

VirtualizationCacheLengthConverter

Converts objects to and from a VirtualizationCacheLength.

VirtualizingPanel

Provides a framework for Panel elements that virtualize their child data collection. This is an abstract class.

VirtualizingStackPanel

Arranges and virtualizes content on a single line that is oriented either horizontally or vertically.

WebBrowser

Hosts and navigates between HTML documents. Enables interoperability between WPF managed code and HTML script.

WrapPanel

Positions child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box. Subsequent ordering happens sequentially from top to bottom or from right to left, depending on the value of the Orientation property.

Structs

DataGridCellInfo

Represents information about a specific cell in a DataGrid.

DataGridClipboardCellContent

Encapsulates the value and location of a DataGrid cell for use when copying content to the Clipboard.

DataGridLength

Represents the lengths of elements within the DataGrid control.

HierarchicalVirtualizationConstraints

Specifies the sizes of a control's viewport and cache. This structure is used by the IHierarchicalVirtualizationAndScrollInfo interface.

HierarchicalVirtualizationHeaderDesiredSizes

Represents the desired size of the control's header, in pixels and in logical units. This structure is used by the IHierarchicalVirtualizationAndScrollInfo interface.

HierarchicalVirtualizationItemDesiredSizes

Represents the desired size of the control's items, in device-independent units (1/96th inch per unit) and in logical units.

PageRange

Specifies a range of pages.

VirtualizationCacheLength

Represents the measurements for the CacheLength attached property.

Enums

CalendarMode

Specifies whether a Calendar displays a month, year, or decade.

CalendarSelectionMode

Specifies whether a single or multiple dates can be selected in a Calendar.

CharacterCasing

Specifies the case of characters typed manually into a TextBox control.

ClickMode

Specifies when the Click event should be raised.

DataGridClipboardCopyMode

Defines constants that specify whether users can copy data from a DataGrid control to the Clipboard and whether column header values are included.

DataGridEditAction

Defines constants that specify whether an edit is being canceled or committed.

DataGridEditingUnit

Defines constants that specify whether editing is enabled on a cell level or on a row level.

DataGridGridLinesVisibility

Defines constants that specify the visibility of the grid lines in a DataGrid.

DataGridHeadersVisibility

Defines constants that specify the visibility of row and column headers in a DataGrid.

DataGridLengthUnitType

Defines constants that specify how elements in a DataGrid are sized.

DataGridRowDetailsVisibilityMode

Defines constants that specify when DataGrid row details are displayed.

DataGridSelectionMode

Defines constants that specify whether single or multiple item selections are supported by a DataGrid control.

DataGridSelectionUnit

Defines constants that specify whether cells, rows, or both, are used for selection in a DataGrid control.

DatePickerFormat

Specifies date formats for a DatePicker.

Dock

Specifies the Dock position of a child element that is inside a DockPanel.

ExpandDirection

Specifies the direction in which an Expander control opens.

FlowDocumentReaderViewingMode

Names viewing modes for the FlowDocumentReader control.

GridResizeBehavior

Specifies the rows or columns that are resized by a GridSplitter control.

GridResizeDirection

Specifies whether a GridSplitter control redistributes space between rows or between columns.

GridViewColumnHeaderRole

Defines the state or role of a GridViewColumnHeader control.

InkCanvasClipboardFormat

Specifies the formats that an InkCanvas will accept from the Clipboard.

InkCanvasEditingMode

Specifies the editing mode for the InkCanvas.

InkCanvasSelectionHitResult

Identifies the various parts of a selection adorner on an InkCanvas.

KeyTipHorizontalPlacement

Specifies the values for the horizontal placement of the KeyTip relative to its placement target.

KeyTipVerticalPlacement

Specifies the values for the vertical placement of the KeyTip relative to its placement target.

MediaState

Specifies the states that can be applied to a MediaElement for the LoadedBehavior and UnloadedBehavior properties.

MenuItemRole

Defines the different roles that a MenuItem can have.

Orientation

Defines the different orientations that a control or layout can have.

OverflowMode

Specifies how ToolBar items are placed in the main toolbar panel and in the overflow panel.

PageRangeSelection

Specifies whether all the pages or only a limited range will be processed by an operation, usually printing.

PanningMode

Specifies how ScrollViewer reacts to touch manipulation.

ScrollBarVisibility

Specifies the visibility of a ScrollBar for scrollable content.

ScrollUnit

Specifies the type of unit that is used by the ScrollUnit attached property.

SelectionMode

Defines the selection behavior for a ListBox.

SelectiveScrollingOrientation

Specifies the direction that SelectiveScrollingGrid panels can scroll.

SpellingReform

Specifies the spelling reform rules used by the spellchecker of the text editing control (i.e. TextBox or RichTextBox).

StickyNoteType

Specifies whether a StickyNoteControl accepts text or ink.

StretchDirection

Describes how scaling applies to content and restricts scaling to named axis types.

UndoAction

How the undo stack caused or is affected by a text change.

ValidationErrorEventAction

Describes whether a ValidationError object has been added or cleared.

ValidationStep

Specifies when a ValidationRule runs.

VirtualizationCacheLengthUnit

Specifies the type of unit that is used by the CacheLength attached property.

VirtualizationMode

Specifies the method the VirtualizingStackPanel uses to manage virtualizing its child items.

Delegates

ActivatingKeyTipEventHandler

Represents the method that handles the ActivatingKeyTip attached event of a KeyTipService.

CleanUpVirtualizedItemEventHandler

Represents the method that handles the CleanUpVirtualizedItem attached events.

ContextMenuEventHandler

Represents the method that will handle the ContextMenuOpening and ContextMenuClosing routed events, as well as equivalent ContentElement events.

DataGridSortingEventHandler

Represents the method that will handle the Sorting event of a DataGrid.

GroupStyleSelector

Delegate used to select the group style as a function of the parent group and its level.

InitializingNewItemEventHandler

Represents the method that will handle the InitializingNewItem event of a DataGrid.

InkCanvasGestureEventHandler

Represents the method that will handle the Gesture event of a InkCanvas.

InkCanvasSelectionChangingEventHandler

Represents the method that will handle the SelectionChanging event of a InkCanvas.

InkCanvasSelectionEditingEventHandler

Represents the method that handles two events raised when changes occur on an InkCanvas: the SelectionMoving event, or the SelectionResizing event.

InkCanvasStrokeCollectedEventHandler

Represents the method that will handle the StrokeCollected event of an InkCanvas.

InkCanvasStrokeErasingEventHandler

Represents the method that handles the StrokeErasing event for an InkCanvas.

InkCanvasStrokesReplacedEventHandler

Represents the method that will handle the StrokesReplaced event of a InkCanvas.

KeyTipAccessedEventHandler

Represents the method that handles the KeyTipAccessed attached event of a KeyTipService.

ScrollChangedEventHandler

Represents the method that will handle the ScrollChanged routed event.

SelectedCellsChangedEventHandler

Represents the method that will handle the SelectedCellsChanged event of a DataGrid.

SelectionChangedEventHandler

Represents the method that will handle the SelectionChanged routed event.

TextChangedEventHandler

Represents the method that will handle the TextChanged routed event.

ToolTipEventHandler

Represents the method that will handle routed event that occur when a tooltip opens and closes.