本文档已存档,并且将不进行维护。

System.Windows.Controls 命名空间

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.

 说明
公共类AccessTextSpecifies with an underscore the character that is used as the access key.
公共类AdornedElementPlaceholderRepresents the element used in a ControlTemplate to specify where an adorned control is placed relative to other elements in the ControlTemplate.
公共类BooleanToVisibilityConverterRepresents the converter that converts Boolean values to and from Visibility enumeration values. This class cannot be inherited.
公共类BorderDraws a border, background, or both around another element.
公共类BorderGapMaskConverterRepresents a converter that converts the dimensions of a GroupBox control into a VisualBrush.
公共类ButtonRepresents a Windows button control, which reacts to the ButtonBase.Click event.
公共类CanvasDefines an area within which you can explicitly position child elements by using coordinates that are relative to the Canvas area.
公共类CheckBoxRepresents a control that a user can select and clear.
公共类CleanUpVirtualizedItemEventArgsProvides data for the CleanUpVirtualizedItem event.
公共类ColumnDefinitionDefines column-specific properties that apply to Grid elements.
公共类ColumnDefinitionCollectionProvides access to an ordered, strongly typed collection of ColumnDefinition objects.
公共类ComboBox Represents a selection control in a drop-down list form. The items in the ComboBox can be shown and hidden by clicking the Button on the control.
公共类ComboBoxItem Implements a selectable item inside a ComboBox.
公共类ContentControlRepresents a control with a single piece of content.
公共类ContentPresenterDisplays the content of a ContentControl.
公共类ContextMenuRepresents a Menu control that contains a pop-up menu. The ContextMenu allows a control to expose functionality through the use of a Menu that is specific to the context of the control.
公共类ContextMenuEventArgs Provides data for a context menu event.
公共类ContextMenuService Service class that provides the system implementation for displaying a ContextMenu.
公共类ControlRepresents the base class for all user-interactive elements
公共类ControlTemplateSpecifies the visual structure and behavioral aspects of a Control that can be shared across multiple instances of the control.
公共类DataTemplateSelectorProvides a way to choose a DataTemplate based on the data object and the data-bound element.
公共类DecoratorProvides a base class for elements that apply effects onto or around a single child element, such as Border or Viewbox.
公共类DefinitionBaseDefines the functionality required to support a shared-size group that is used by the ColumnDefinitionCollection and RowDefinitionCollection classes. This is an abstract class.
公共类DockPanelDefines an area where you can arrange child elements either horizontally or vertically, relative to each other.
公共类DocumentViewerRepresents a document viewing control that can host paginated FixedDocument content such as an XpsDocument.
公共类ExceptionValidationRuleRepresents a rule that checks for exceptions that are thrown during the update of the binding source property.
公共类ExpanderRepresents the control that displays a header that has a collapsible window that displays content.
公共类FlowDocumentPageViewerRepresents a control for viewing flow content in a fixed viewing mode that shows content one page at a time.
公共类FlowDocumentReaderProvides a control for viewing flow content, with built-in support for multiple viewing modes.
公共类FlowDocumentScrollViewerProvides a control for viewing flow content in a continuous scrolling mode.
公共类FrameFrame is a content control that supports navigation.
公共类GridDefines a flexible grid area that consists of columns and rows.
公共类GridSplitterRepresents the control that redistributes space between columns or rows of a Grid control.
公共类GridViewRepresents a view mode that displays data items in columns for a ListView control.
公共类GridViewColumnRepresents a column that displays data.
公共类GridViewColumnCollectionRepresents a collection of GridViewColumn objects.
公共类GridViewColumnHeaderRepresents a column header for a GridViewColumn.
公共类GridViewHeaderRowPresenterRepresents an object that is used to define the layout of a row of column headers.
公共类GridViewRowPresenterRepresents an object that specifies the layout of a row of data.
公共类GroupBoxRepresents a control that creates a container that has a border and a header for user interface (UI) content.
公共类GroupItemAppears as the root of the visual subtree generated for a group.
公共类GroupStyleDefines how you want the group to look at each level.
公共类HeaderedContentControl Base class, but not an abstract class, for all controls that contain single content and have a header.
公共类HeaderedItemsControlRepresents a control that contains multiple items and have a header.
公共类ImageRepresents a control that displays an image.
公共类InkCanvasDefines an area that receives and displays ink strokes.
公共类InkCanvasGestureEventArgsProvides data for the Gesture event.
公共类InkCanvasSelectionChangingEventArgsProvides data for the SelectionChanging.
公共类InkCanvasSelectionEditingEventArgsProvides data for the SelectionMoving and SelectionResizing events.
公共类InkCanvasStrokeCollectedEventArgsProvides data for the StrokeCollected event.
公共类InkCanvasStrokeErasingEventArgsProvides data for the StrokeErasing event.
公共类InkCanvasStrokesReplacedEventArgsProvides data for the StrokesReplaced event.
公共类InkPresenterRenders ink on a surface.
公共类ItemCollectionHolds the list of items that constitute the content of an ItemsControl.
公共类ItemContainerGeneratorGenerates the user interface (UI) on behalf of its host, such as an ItemsControl. This class cannot be inherited.
公共类ItemsControlRepresents a control that can be used to present a collection of items.
公共类ItemsPanelTemplateSpecifies the panel that the ItemsPresenter creates for the layout of the items of an ItemsControl.
公共类ItemsPresenterUsed 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.
公共类LabelRepresents the text label for a control and provides support for access keys.
公共类ListBox Control that implements a list of selectable items.
公共类ListBoxItemRepresents a selectable item in a ListBox.
公共类ListViewRepresents a control that displays a list of data items.
公共类ListViewItemRepresents an item in a ListView control.
公共类MediaElementRepresents 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.
公共类MenuItemImplements a selectable item inside a Menu.
公共类MenuScrollingVisibilityConverterData binding converter to handle the visibility of repeat buttons in scrolling menus.
公共类PagePage encapsulates a page of content that can be navigated to and hosted by Windows Internet Explorer, NavigationWindow, and Frame.
公共类PanelProvides a base class for all Panel elements. Use Panel elements to position and arrange child objects in Windows Presentation Foundation (WPF) applications.
公共类PasswordBoxRepresents a control designed for entering and handling passwords.
公共类PrintDialogInvokes a standard Microsoft Windows print dialog box that configures a PrintTicket and PrintQueue according to user input and then prints a document.
公共类PrintDialogExceptionThe exception that is thrown when an error condition occurs during the opening, accessing, or using of a PrintDialog Control.
公共类ProgressBar Control that an application uses to visually indicate the progress of a lengthy 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 progammatically.
公共类RichTextBoxRepresents a rich editing control which operates on FlowDocument objects.
公共类RowDefinitionDefines row-specific properties that apply to Grid elements.
公共类RowDefinitionCollectionProvides access to an ordered, strongly typed collection of RowDefinition objects. This class cannot be inherited.
公共类ScrollChangedEventArgsDescribes a change in the scrolling state and contains the required arguments for a ScrollChanged event.
公共类ScrollContentPresenterDisplays the content of a ScrollViewer control. This class cannot be inherited.
公共类ScrollViewerRepresents a scrollable area that can contain other visible elements.
公共类SelectionChangedEventArgs Provides data for the SelectionChanged event.
公共类Separator Control that is used to separate items in items controls.
公共类SliderRepresents a control that lets the user select from a range of values by moving a Thumb control along a Track.
公共类SoundPlayerActionRepresents a light weight audio playback TriggerAction used to play .wav files.
公共类SpellCheckProvides real-time spell checking functionality to text editing controls, including TextBox and RichTextBox.
公共类SpellingErrorRepresents a misspelled word in an editing control (i.e. TextBox or RichTextBox).
公共类StackPanelArranges child elements into a single line that can be oriented horizontally or vertically.
公共类StickyNoteControlRepresents a control that lets users attach typed text or handwritten annotations to documents. This class cannot be inherited.
公共类StyleSelectorProvides a way to apply styles based on custom logic.
公共类TabControlRepresents a control that allows visual content to be arranged in a tabular form.
公共类TabItemControl that implements a selectable item inside a TabControl.
公共类TextBlockProvides a lightweight control for displaying small amounts of flow content.
公共类TextBoxRepresents a control that can be used to display or edit unformatted text.
公共类TextChangedEventArgsProvides data for the TextChanged event.
公共类TextSearchEnables a user to quickly access items in a set by typing prefixes of strings.
公共类ToolBarProvides a container for a group of commands or controls.
公共类ToolBarTrayLayout container that handles the layout of a ToolBar.
公共类ToolTipRepresents a control that creates a pop-up window that displays information for an element in the interface.
公共类ToolTipEventArgsProvides event information for events that occur when a tooltip opens or closes. This class cannot be inherited.
公共类ToolTipServiceRepresents a service that provides properties and events to control the display and behavior of tooltips. This class cannot be inherited.
公共类TreeViewRepresents a control that displays hierarchical data in a tree structure that has items that can expand and collapse.
公共类TreeViewItemImplements a selectable item in a TreeView control.
公共类UIElementCollectionRepresents an ordered collection of UIElements.
公共类UserControlProvides a simple way to create a control.
公共类ValidationProvides methods and attached properties that support data validation. This class cannot be inherited.
公共类ValidationErrorRepresents a validation error that is created either by the binding engine when a ValidationRule reports a validation error, or through the MarkInvalid method explicitly.
公共类ValidationErrorEventArgsProvides information for the Validation.Error attached event.
公共类ValidationResultRepresents the result returned by the ValidationRule.Validate method that indicates whether the checked value passed the ValidationRule.
公共类ValidationRuleProvides a way to create a custom rule in order to check the validity of user input. This is an abstract class.
公共类ViewBaseRepresents the base class for views that define the appearance of data in a ListView control.
公共类ViewboxDefines a content decorator that can stretch and scale a single child to fill the available space.
公共类Viewport3DProvides a rendering surface for 3-D visual content.
公共类VirtualizingPanelProvides a framework for Panel elements that virtualize their child data collection. This is an abstract class.
公共类VirtualizingStackPanelArranges and virtualizes content on a single line that is oriented either horizontally or vertically.
公共类WrapPanelPositions 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.

 结构说明
公共结构PageRangeSpecifies a range of pages.

 委托说明
公共委托CleanUpVirtualizedItemEventHandlerRepresents the method that handles the CleanUpVirtualizedItem event.
公共委托ContextMenuEventHandler Represents the methods that handle the ContextMenuClosing and ContextMenuOpening events.
公共委托GroupStyleSelectorDelegate used to select the group style as a function of the parent group and its level.
公共委托InkCanvasGestureEventHandlerRepresents the method that will handle the Gesture event of a InkCanvas.
公共委托InkCanvasSelectionChangingEventHandlerRepresents the method that will handle the SelectionChanging event of a InkCanvas.
公共委托InkCanvasSelectionEditingEventHandlerRepresents the method that will handle the SelectionMoving event, or SelectionResizing event of an InkCanvas.
公共委托InkCanvasStrokeCollectedEventHandlerRepresents the method that will handle the StrokeCollected event of an InkCanvas.
公共委托InkCanvasStrokeErasingEventHandlerRepresents the method that will handle the StrokeErasing event of a InkCanvas.
公共委托InkCanvasStrokesReplacedEventHandlerRepresents the method that will handle the StrokesReplaced event of a InkCanvas.
公共委托ScrollChangedEventHandlerRepresents the method that is used to handle the ScrollChanged event.
公共委托SelectionChangedEventHandler Represents the methods that handle the SelectionChanged event.
公共委托TextChangedEventHandler Represents the method that handles the TextChanged event.
公共委托ToolTipEventHandlerRepresents the method that handles events that occur when a tooltip opens and closes.

 枚举说明
公共枚举CharacterCasingSpecifies the case of characters typed manually into a TextBox control.
公共枚举ClickMode Specifies when the Click event should fire.
公共枚举DockSpecifies the Dock position of a child element that is inside a DockPanel.
公共枚举ExpandDirectionSpecifies the direction in which an Expander control opens.
公共枚举FlowDocumentReaderViewingModeNames viewing modes for the FlowDocumentReader control.
公共枚举GridResizeBehaviorSpecifies the rows or columns that are resized by a GridSplitter control.
公共枚举GridResizeDirectionSpecifies whether a GridSplitter control redistributes space between rows or between columns.
公共枚举GridViewColumnHeaderRoleDefines the state or role of a GridViewColumnHeader control.
公共枚举InkCanvasClipboardFormatSpecifies the type of formats that an InkCanvas accepts from the Clipboard.
公共枚举InkCanvasEditingModeSpecifies the editing mode for the InkCanvas
公共枚举InkCanvasSelectionHitResultIdentifies the various parts of a selection adorner of an InkCanvas.
公共枚举MediaStateSpecifies 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.
公共枚举PageRangeSelectionSpecifies whether all the pages or only a limited range will be processed by an operation, usually printing.
公共枚举ScrollBarVisibilitySpecifies the visibility of a ScrollBar for scrollable content.
公共枚举SelectionMode Defines the selection behavior for a ListBox.
公共枚举SpellingReformSpecifies the spelling reform rules used by the spellchecker of the text editing control (i.e. TextBox or RichTextBox).
公共枚举StickyNoteTypeSpecifies whether a StickyNoteControl accepts textor ink.
公共枚举StretchDirectionDescribes 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.
公共枚举ValidationErrorEventActionDescribes whether a ValidationError object has been added or cleared.
显示: