CVB.Net 15.0
Loading...
Searching...
No Matches

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 Public Attributes inherited from DisplayCanvasThumbObject
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.
 
- Protected Member Functions inherited from DisplayCanvasThumbObject
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.
 
- Static Protected Attributes inherited from DisplayCanvasThumbObject
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.
 
- Properties inherited from DisplayCanvasThumbObject
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

- Public Member Functions inherited from DisplayCanvasThumbObject
 DisplayCanvasThumbObject ()
 Ctor.
 

Detailed Description

Semi-Generic move thumb for ImageOverlays.

Member Function Documentation

◆ OnDragDelta()

override void OnDragDelta ( DragDeltaEventArgs e)
protectedvirtual

Overlay is being dragged across a display.

Parameters
eEvent arguments.

Reimplemented from DisplayCanvasThumbObject.

◆ OnMouseLeftButtonUp()

override void OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e)
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.

Parameters
eEvent arguments.