Semi-Generic move thumb for ImageOverlays. More...
Inherits DisplayCanvasThumbObject.
Static Public Attributes | |
static readonly DependencyProperty | MoveDirectionProperty |
Backing store for the MoveDirection property. | |
static readonly DependencyProperty | IgnoreSizeProperty |
Backing store for the IgnoreSize property. | |
![]() | |
static readonly DependencyProperty | PlacementLimitsProperty |
Dependency property object for PlacementLimits | |
static readonly DependencyProperty | CoordinatesProperty |
Dependency property object for Coordinates | |
Protected Member Functions | |
override void | OnDragDelta (DragDeltaEventArgs e) |
Overlay is being dragged across a display. | |
override void | OnMouseLeftButtonUp (System.Windows.Input.MouseButtonEventArgs e) |
Make sure the left button up event bubbles - otherwise the user of an overlay hardly has a way of finding out when dragging stopped. | |
![]() | |
virtual void | OnDragStarted (DragStartedEventArgs e) |
Drag started handler. | |
virtual void | ApplyCoordinateRestrictions (ref double left, ref double top, ref double right, ref double bottom, bool ignoreSize) |
Make sure the control stays within the limits of the image it is "living" on. | |
Static Protected Attributes | |
const MoveDirection | MoveDirectionDefault = MoveDirection.Both |
Default value for the property. | |
const bool | IgnoreSizeDefault = false |
Default value for the property. | |
![]() | |
const PlacementMode | PlacementLimitsDefault = PlacementMode.StayInsideImage |
Default limit mode. | |
const CoordinateMode | CoordinatesDefault = CoordinateMode.Pixel |
Default coordinate mode. | |
Properties | |
MoveDirection | MoveDirection [get, set] |
Gets/sets the move direction of this thumb. | |
bool | IgnoreSize [get, set] |
Gets/sets whether the move thumb should ignore the size when applying placement limits. | |
![]() | |
PlacementMode | PlacementLimits [get, set] |
X position of the feature window origin. | |
CoordinateMode | Coordinates [get, set] |
X position of the feature window origin. | |
DisplayCanvas | Canvas [get] |
The display canvas we are displayed on (if there is none, this will simply be null... | |
OverlayBase | Overlay [get] |
The control we are operating on. | |
Additional Inherited Members | |
![]() | |
DisplayCanvasThumbObject () | |
Ctor. | |
Semi-Generic move thumb for ImageOverlays.
|
protectedvirtual |
Overlay is being dragged across a display.
e | Event arguments. |
Reimplemented from DisplayCanvasThumbObject.
|
protected |
Make sure the left button up event bubbles - otherwise the user of an overlay hardly has a way of finding out when dragging stopped.
e | Event arguments. |