System.Windows.Controls.Primitives Namespace

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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


Class Description
ButtonBase Represents the base class for all button controls, such as Button, RepeatButton, and HyperlinkButton.
DragCompletedEventArgs Provides data for the DragCompleted event that occurs when a user completes a drag operation with a Thumb control.
DragDeltaEventArgs Provides data for the DragDelta event that occurs one or more times when a user drags a Thumb control.
DragStartedEventArgs Provides data for the DragStarted event that occurs when a user drags a Thumb control.
ItemsChangedEventArgs Provides data for the ItemsChanged event.
LayoutInformation Defines methods that provide additional information about the layout of an element.
ManipulationStateChangedEventArgs Provides data for the ManipulationStateChanged event.
Popup Displays content on top of existing application content.
RangeBase Represents an element that has a value within a specific range, such as the ProgressBar, ScrollBar, and Slider controls.
RepeatButton Represents a control that raises its Click event repeatedly from the time it is pressed until it is released.
ScrollBar Represents a control that provides a scroll bar that has a sliding Thumb whose position corresponds to a value.
ScrollEventArgs Provides data for the Scroll event.
Selector Represents a control that allows a user to select an item from a collection of items.
Thumb Represents a control that can be dragged by the user.
ToggleButton Base class for controls that can switch states, such as CheckBox and RadioButton.
ViewportChangedEventArgs Provides data for the ViewportChanged event.
ViewportControl Represents the virtualized scrollable region in the LongListSelector.


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


Interface Description
IItemContainerGenerator An interface that is implemented by classes which are responsible for generating UI content on behalf of a host.
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.
IScrollInfo Represents the main scrollable region inside a ScrollViewer control.


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


Enumeration Description
GeneratorDirection Specifies the direction in which item generation will occur.
ManipulationLockMode Specifies values that you can use to lock manipulation on ViewportControl.
ManipulationState Specifies the different mutually exclusive manipulation states of the ViewPortControl.
PlacementMode Infrastructure. Specifies the preferred location for positioning a ToolTip relative to a visual element.
ScrollEventType Infrastructure. Specifies the type of Scroll event that occurred.