Class
Pad

Represents a helper control which allows its content to be moved freely with the mouse.

Definition

Namespace:Telerik.Windows.Controls.ColorEditor.Pad

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces")]
public class Pad : ContentControl

Inheritance: objectPad

Constructors

Pad()

Initializes a new instance of the Pad class.

Declaration

cs-api-definition
public Pad()

Fields

MovementDirectionProperty

Identifies the MovementDirection dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MovementDirectionProperty

Field Value

DependencyProperty

PointerRelativePositionProperty

Identifies the PointerRelativePosition dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PointerRelativePositionProperty

Field Value

DependencyProperty

Properties

MovementDirection

Gets or sets the MovementDirection property.

Declaration

cs-api-definition
public MovementDirection MovementDirection { get; set; }

Property Value

MovementDirection

PointerRelativePosition

Gets or sets the PointerRelativePosition property.

Declaration

cs-api-definition
public Point PointerRelativePosition { get; set; }

Property Value

Point

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnMovementDirectionChanged(MovementDirection, MovementDirection)

Called when the MovementDirection property changes.

Declaration

cs-api-definition
protected virtual void OnMovementDirectionChanged(MovementDirection oldValue, MovementDirection newValue)

Parameters

oldValue

MovementDirection

The old value.

newValue

MovementDirection

The new value.

OnPointerRelativePositionChanged(Point, Point)

Called when PointerRelativePosition property changes.

Declaration

cs-api-definition
protected virtual void OnPointerRelativePositionChanged(Point oldValue, Point newValue)

Parameters

oldValue

Point

The old value.

newValue

Point

The new value.

RaisePointerPositionChanged()

Raises the PointerPositionChanged event.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate")]
public virtual void RaisePointerPositionChanged()

RaisePointerPositionChanging()

Raises the PointerPositionChanging event.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate")]
public virtual void RaisePointerPositionChanging()

Events

PointerPositionChanged

Occurs when the pointer has changed its position.

Declaration

cs-api-definition
public event EventHandler<PointerPositionChangeEventArgs> PointerPositionChanged

Event Value

EventHandler<PointerPositionChangeEventArgs>

PointerPositionChanging

Occurs when the pointer is changing its position.

Declaration

cs-api-definition
public event EventHandler<PointerPositionChangeEventArgs> PointerPositionChanging

Event Value

EventHandler<PointerPositionChangeEventArgs>