Class Pad
Represents a helper control which allows its content to be moved freely with the mouse.
Inheritance
Namespace: Telerik.Windows.Controls.ColorEditor.Pad
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
public class Pad : ContentControl
Constructors
Pad()
Fields
MovementDirectionProperty
Identifies the MovementDirection dependency property.
Declaration
public static readonly DependencyProperty MovementDirectionProperty
Field Value
System.Windows.DependencyProperty
|
PointerRelativePositionProperty
Identifies the PointerRelativePosition dependency property.
Declaration
public static readonly DependencyProperty PointerRelativePositionProperty
Field Value
System.Windows.DependencyProperty
|
Properties
MovementDirection
Gets or sets the MovementDirection property.
Declaration
public MovementDirection MovementDirection { get; set; }
Property Value
MovementDirection
|
PointerRelativePosition
Gets or sets the PointerRelativePosition property.
Declaration
public Point PointerRelativePosition { get; set; }
Property Value
System.Windows.Point
|
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
Declaration
public override void OnApplyTemplate()
OnMovementDirectionChanged(MovementDirection, MovementDirection)
Called when the MovementDirection property changes.
Declaration
protected virtual void OnMovementDirectionChanged(MovementDirection oldValue, MovementDirection newValue)
Parameters
MovementDirection
oldValue
The old value. |
MovementDirection
newValue
The new value. |
OnPointerRelativePositionChanged(Point, Point)
Called when PointerRelativePosition property changes.
Declaration
protected virtual void OnPointerRelativePositionChanged(Point oldValue, Point newValue)
Parameters
System.Windows.Point
oldValue
The old value. |
System.Windows.Point
newValue
The new value. |
RaisePointerPositionChanged()
Raises the PointerPositionChanged event.
Declaration
public virtual void RaisePointerPositionChanged()
RaisePointerPositionChanging()
Raises the PointerPositionChanging event.
Declaration
public virtual void RaisePointerPositionChanging()
Events
PointerPositionChanged
Occurs when the pointer has changed its position.
Declaration
public event EventHandler<PointerPositionChangeEventArgs> PointerPositionChanged
Event Type
System.EventHandler<PointerPositionChangeEventArgs>
|
PointerPositionChanging
Occurs when the pointer is changing its position.
Declaration
public event EventHandler<PointerPositionChangeEventArgs> PointerPositionChanging
Event Type
System.EventHandler<PointerPositionChangeEventArgs>
|