共用方式為


System.Windows.Controls.Primitives Namespace

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Contains base classes and controls that are intended to be used as part of more complex controls.

Classes

  Class Description
Public class ButtonBase Represents the base class for all button controls, such as Button, RepeatButton, and HyperlinkButton.
Public class CalendarButton Represents a button on a Calendar.
Public class CalendarDayButton Represents a day on a Calendar.
Public class CalendarItem Represents the currently displayed month or year on a Calendar.
Public class DataGridCellsPresenter Used within the template of a DataGrid to specify the location in the control's visual tree where the cells are to be added.
Public class DataGridColumnHeader Represents an individual DataGrid column header.
Public class DataGridColumnHeadersPresenter Used within the template of a DataGrid to specify the location in the control's visual tree where the column headers are to be added.
Public class DataGridDetailsPresenter Used within the template of a DataGrid to specify the location in the control's visual tree where the row details are to be added.
Public class DataGridFrozenGrid Represents a non-scrollable grid that contains DataGrid row headers.
Public class DataGridRowHeader Represents an individual DataGrid row header.
Public class DataGridRowsPresenter Used within the template of a DataGrid to specify the location in the control's visual tree where the rows are to be added.
Public class DatePickerTextBox Represents the text input of a DatePicker.
Public class DragCompletedEventArgs Provides data for the DragCompleted event that occurs when a user completes a drag operation with the mouse of a Thumb control.
Public class DragDeltaEventArgs Provides data for the DragDelta event that occurs one or more times when a user drags a Thumb control with the mouse..
Public class DragStartedEventArgs Provides data for the DragStarted event that occurs when a user drags a Thumb control with the mouse.
Public class ItemsChangedEventArgs Provides data for the ItemsChanged event.
Public class LayoutInformation Defines methods that provide additional information about the layout of an element.
Public class Popup Displays content on top of existing Silverlight content, within the bounds of the Silverlight control.
Public class RangeBase Represents an element that has a value within a specific range, such as the ProgressBar, ScrollBar, and Slider controls.
Public class RepeatButton Represents a control that raises its Click event repeatedly from the time it is pressed until it is released.
Public class ScrollBar Represents a control that provides a scroll bar that has a sliding Thumb whose position corresponds to a value.
Public class ScrollEventArgs Provides data for the Scroll event.
Public class Selector Represents a control that allows a user to select an item from a collection of items.
Public class TabPanel Handles the layout of TabItem objects on a TabControl.
Public class Thumb Represents a control that can be dragged by the user.
Public class ToggleButton Base class for controls that can switch states, such as CheckBox and RadioButton.

Structures

  Structure Description
Public structure GeneratorPosition GeneratorPosition is used to describe the position of an item that is managed by ItemContainerGenerator.

Interfaces

  Interface Description
Public interface IItemContainerGenerator An interface that is implemented by classes which are responsible for generating UI content on behalf of a host.
Public interface IRecyclingItemContainerGenerator Extends the IItemContainerGenerator interface to reuse the UI content it generates. Classes that are responsible for generating user interface (UI) content on behalf of a host implement this interface.
Public interface IScrollInfo Represents the main scrollable region inside a ScrollViewer control.

Delegates

  Delegate Description
Public delegate DragCompletedEventHandler Represents the method that will handle the DragCompleted event of a Thumb.
Public delegate DragDeltaEventHandler Represents the method that will handle the DragDelta event of a Thumb.
Public delegate DragStartedEventHandler Represents the method that will handle the DragStarted event of a Thumb.
Public delegate ItemsChangedEventHandler Represents the method that will handle the ItemsChanged event.
Public delegate ScrollEventHandler Represents the method that will handle the Scroll event of a ScrollBar.

Enumerations

  Enumeration Description
Public enumeration GeneratorDirection Specifies the direction in which item generation will occur.
Public enumeration PlacementMode Specifies the preferred location for positioning a ToolTip relative to a visual element.
Public enumeration ScrollEventType Specifies the type of Scroll event that occurred.