TrackInteractiveOverlay¶
Namespace: ThinkGeo.UI.WinForms
This class inherits from InteractiveOverlay abstract class. This specified overlay describe the TrackShape interactive process with MapControl using Mouse or Keyboard.
public class TrackInteractiveOverlay : InteractiveOverlay, System.Windows.Media.Composition.DUCE+IResource, System.Windows.Media.Animation.IAnimatable, System.Windows.IInputElement, System.Windows.IFrameworkInputElement, System.ComponentModel.ISupportInitialize, System.Windows.Markup.IHaveResources, System.Windows.Markup.IQueryAmbient, System.Windows.Markup.IAddChild, System.IDisposable
Inheritance object → DispatcherObject → DependencyObject → Visual → UIElement → FrameworkElement → Panel → Canvas → Overlay → WpfDrawingOverlay → InteractiveOverlay → TrackInteractiveOverlay
Implements IResource, IAnimatable, IInputElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IDisposable
Properties¶
IsEmpty¶
This property override the logic in its base class by watching the feature count in trackShapeLayer.
If it is empty ,we can skip drawing it for better performance.
public bool IsEmpty { get; }
Property Value¶
TrackShapeLayer¶
This property gets the TrackShape layers which holds the track shapes.
public InMemoryFeatureLayer TrackShapeLayer { get; }
Property Value¶
InMemoryFeatureLayer
TrackShapesInProcessLayer¶
Gets the layer that stores the feature currently being tracked during a drawing operation.
public InMemoryFeatureLayer TrackShapesInProcessLayer { get; }
Property Value¶
InMemoryFeatureLayer
Remarks:
This property is deprecated and will be removed after v15.0. It was previously used to store the feature being tracked, which is not suitable to expose as a property. Use the event arguments of TrackInteractiveOverlay.TrackEnding instead.
VertexCountInQuarter¶
public int VertexCountInQuarter { get; set; }
Property Value¶
TrackMode¶
Gets a mode of TrackOverlay.
public TrackMode TrackMode { get; set; }
Property Value¶
TrackMode
A mode of TrackOverlay.
Remarks:
The default mode is TrackMode.None which means you cannot draw or edit features. By setting the mode to TrackMode.Point, TrackMode.Line, TrackMode.Polygon etc., you could add point, line or polygon to the FeatureOverlay. Setting the mode to TrackMode.Edit, you could edit the shapes.
DrawingMarginPercentage¶
Gets or sets the additional drawing margin, expressed as a percentage of the map height.
public double DrawingMarginPercentage { get; set; }
Property Value¶
double
The percentage buffer applied around the map extent to keep partially visible content, such as labels, in view.
Remarks:
The extra margin helps ensure symbols or labels drawn just outside the current extent render correctly when they overlap the view.
Name¶
Gets or sets the logical name of the overlay, constrained to characters accepted by FrameworkElement.NameProperty.
public string Name { get; set; }
Property Value¶
MapArguments¶
Gets or sets the map-specific arguments that describe the view, projection, and dimensions used during drawing.
public IMapArguments MapArguments { get; set; }
Property Value¶
IMapArguments
DrawingExceptionMode¶
Gets or sets how the overlay responds when drawing or refresh operations throw an exception.
public DrawingExceptionMode DrawingExceptionMode { get; set; }
Property Value¶
DrawingExceptionMode
Remarks:
Shares Overlay.DrawingExceptionMode with LayerBase.DrawingExceptionMode, so one enum covers layers and overlays. An overlay is the thing doing the drawing, so the two Draw* members differ from the other two only in whether the exception is rethrown: DrawingExceptionMode.DrawAndThrowException and DrawingExceptionMode.ThrowException raise Overlay.ThrowingException and then rethrow, while DrawingExceptionMode.DrawException and DrawingExceptionMode.IgnoreException swallow it.
ThrowingExceptionMode¶
Gets or sets how the overlay responds when drawing or refresh operations throw an exception.
public ThrowingExceptionMode ThrowingExceptionMode { get; set; }
Property Value¶
IsVisible¶
Gets or sets a value indicating whether the overlay is visible on the map.
public bool IsVisible { get; set; }
Property Value¶
Remarks:
Setting the property updates UIElement.Visibility. It will internally call Overlay.RefreshAsync(CancellationToken) if needed. In XAML, bind UIElement.Visibility instead: {Binding IsVisible} on an overlay resolves to the read-only UIElement.IsVisible, which says whether the overlay is rendered right now, not to this property.
Attribution¶
Gets the attribution text displayed for the overlay.
public string Attribution { get; protected set; }
Property Value¶
Remarks:
Set by derived overlays to describe the data source rendered on the map.
Background¶
public Brush Background { get; set; }
Property Value¶
Children¶
public UIElementCollection Children { get; }
Property Value¶
IsItemsHost¶
public bool IsItemsHost { get; set; }
Property Value¶
LogicalOrientationPublic¶
public Orientation LogicalOrientationPublic { get; }
Property Value¶
HasLogicalOrientationPublic¶
public bool HasLogicalOrientationPublic { get; }
Property Value¶
Style¶
public Style Style { get; set; }
Property Value¶
OverridesDefaultStyle¶
public bool OverridesDefaultStyle { get; set; }
Property Value¶
UseLayoutRounding¶
public bool UseLayoutRounding { get; set; }
Property Value¶
Triggers¶
public TriggerCollection Triggers { get; }
Property Value¶
TemplatedParent¶
public DependencyObject TemplatedParent { get; }
Property Value¶
Resources¶
public ResourceDictionary Resources { get; set; }
Property Value¶
DataContext¶
public object DataContext { get; set; }
Property Value¶
BindingGroup¶
public BindingGroup BindingGroup { get; set; }
Property Value¶
Language¶
public XmlLanguage Language { get; set; }
Property Value¶
Tag¶
public object Tag { get; set; }
Property Value¶
InputScope¶
public InputScope InputScope { get; set; }
Property Value¶
ActualWidth¶
public double ActualWidth { get; }
Property Value¶
ActualHeight¶
public double ActualHeight { get; }
Property Value¶
LayoutTransform¶
public Transform LayoutTransform { get; set; }
Property Value¶
Width¶
public double Width { get; set; }
Property Value¶
MinWidth¶
public double MinWidth { get; set; }
Property Value¶
MaxWidth¶
public double MaxWidth { get; set; }
Property Value¶
Height¶
public double Height { get; set; }
Property Value¶
MinHeight¶
public double MinHeight { get; set; }
Property Value¶
MaxHeight¶
public double MaxHeight { get; set; }
Property Value¶
FlowDirection¶
public FlowDirection FlowDirection { get; set; }
Property Value¶
Margin¶
public Thickness Margin { get; set; }
Property Value¶
HorizontalAlignment¶
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value¶
VerticalAlignment¶
public VerticalAlignment VerticalAlignment { get; set; }
Property Value¶
FocusVisualStyle¶
public Style FocusVisualStyle { get; set; }
Property Value¶
Cursor¶
public Cursor Cursor { get; set; }
Property Value¶
ForceCursor¶
public bool ForceCursor { get; set; }
Property Value¶
IsInitialized¶
public bool IsInitialized { get; }
Property Value¶
IsLoaded¶
public bool IsLoaded { get; }
Property Value¶
ToolTip¶
public object ToolTip { get; set; }
Property Value¶
ContextMenu¶
public ContextMenu ContextMenu { get; set; }
Property Value¶
Parent¶
public DependencyObject Parent { get; }
Property Value¶
HasAnimatedProperties¶
public bool HasAnimatedProperties { get; }
Property Value¶
InputBindings¶
public InputBindingCollection InputBindings { get; }
Property Value¶
CommandBindings¶
public CommandBindingCollection CommandBindings { get; }
Property Value¶
AllowDrop¶
public bool AllowDrop { get; set; }
Property Value¶
DesiredSize¶
public Size DesiredSize { get; }
Property Value¶
IsMeasureValid¶
public bool IsMeasureValid { get; }
Property Value¶
IsArrangeValid¶
public bool IsArrangeValid { get; }
Property Value¶
RenderSize¶
public Size RenderSize { get; set; }
Property Value¶
RenderTransform¶
public Transform RenderTransform { get; set; }
Property Value¶
RenderTransformOrigin¶
public Point RenderTransformOrigin { get; set; }
Property Value¶
IsMouseDirectlyOver¶
public bool IsMouseDirectlyOver { get; }
Property Value¶
IsMouseOver¶
public bool IsMouseOver { get; }
Property Value¶
IsStylusOver¶
public bool IsStylusOver { get; }
Property Value¶
IsKeyboardFocusWithin¶
public bool IsKeyboardFocusWithin { get; }
Property Value¶
IsMouseCaptured¶
public bool IsMouseCaptured { get; }
Property Value¶
IsMouseCaptureWithin¶
public bool IsMouseCaptureWithin { get; }
Property Value¶
IsStylusDirectlyOver¶
public bool IsStylusDirectlyOver { get; }
Property Value¶
IsStylusCaptured¶
public bool IsStylusCaptured { get; }
Property Value¶
IsStylusCaptureWithin¶
public bool IsStylusCaptureWithin { get; }
Property Value¶
IsKeyboardFocused¶
public bool IsKeyboardFocused { get; }
Property Value¶
IsInputMethodEnabled¶
public bool IsInputMethodEnabled { get; }
Property Value¶
Opacity¶
public double Opacity { get; set; }
Property Value¶
OpacityMask¶
public Brush OpacityMask { get; set; }
Property Value¶
BitmapEffect¶
public BitmapEffect BitmapEffect { get; set; }
Property Value¶
Effect¶
public Effect Effect { get; set; }
Property Value¶
BitmapEffectInput¶
public BitmapEffectInput BitmapEffectInput { get; set; }
Property Value¶
CacheMode¶
public CacheMode CacheMode { get; set; }
Property Value¶
Uid¶
public string Uid { get; set; }
Property Value¶
Visibility¶
public Visibility Visibility { get; set; }
Property Value¶
ClipToBounds¶
public bool ClipToBounds { get; set; }
Property Value¶
Clip¶
public Geometry Clip { get; set; }
Property Value¶
SnapsToDevicePixels¶
public bool SnapsToDevicePixels { get; set; }
Property Value¶
IsFocused¶
public bool IsFocused { get; }
Property Value¶
IsEnabled¶
public bool IsEnabled { get; set; }
Property Value¶
IsHitTestVisible¶
public bool IsHitTestVisible { get; set; }
Property Value¶
Focusable¶
public bool Focusable { get; set; }
Property Value¶
PersistId¶
public int PersistId { get; }
Property Value¶
IsManipulationEnabled¶
public bool IsManipulationEnabled { get; set; }
Property Value¶
AreAnyTouchesOver¶
public bool AreAnyTouchesOver { get; }
Property Value¶
AreAnyTouchesDirectlyOver¶
public bool AreAnyTouchesDirectlyOver { get; }
Property Value¶
AreAnyTouchesCapturedWithin¶
public bool AreAnyTouchesCapturedWithin { get; }
Property Value¶
AreAnyTouchesCaptured¶
public bool AreAnyTouchesCaptured { get; }
Property Value¶
TouchesCaptured¶
public IEnumerable<TouchDevice> TouchesCaptured { get; }
Property Value¶
TouchesCapturedWithin¶
public IEnumerable<TouchDevice> TouchesCapturedWithin { get; }
Property Value¶
TouchesOver¶
public IEnumerable<TouchDevice> TouchesOver { get; }
Property Value¶
TouchesDirectlyOver¶
public IEnumerable<TouchDevice> TouchesDirectlyOver { get; }
Property Value¶
DependencyObjectType¶
public DependencyObjectType DependencyObjectType { get; }
Property Value¶
IsSealed¶
public bool IsSealed { get; }
Property Value¶
Dispatcher¶
public Dispatcher Dispatcher { get; }
Property Value¶
Constructors¶
TrackInteractiveOverlay()¶
Default constructor of the class.
If you use this constructor, please set the properties correctly or it will use their default values.
public TrackInteractiveOverlay()
Methods¶
OpenAsyncCore(CancellationToken)¶
protected Task OpenAsyncCore(CancellationToken cancellationToken)
Parameters¶
cancellationToken CancellationToken
Returns¶
EndTracking()¶
This method ends the tracking shape by initialize some variables.
protected void EndTracking()
Returns¶
CancelTracking()¶
Throws away the shape being drawn and leaves the mode armed for the next one. Pressing Escape calls this; switching TrackMode mid-draw goes through it too, and an application can call it from its own Cancel button.
public void CancelTracking()
Returns¶
UndoLastVertex()¶
Takes back the last committed vertex of the shape being drawn: a line loses its newest point, a polygon steps back one click. A shape drawn in one gesture, or one with nothing left to take back, is cancelled whole.
public void UndoLastVertex()
Returns¶
KeyDownCore(KeyEventInteractionArguments)¶
Escape cancels the shape being drawn - the universal expectation, and otherwise the only way out of a half-drawn polygon is to finish it and delete it.
protected InteractiveResult KeyDownCore(KeyEventInteractionArguments interactionArguments)
Parameters¶
interactionArguments KeyEventInteractionArguments
Returns¶
MouseDownCore(InteractionArguments)¶
This overrides the MouseDown logic in its base class InteractiveOverlay.
protected InteractiveResult MouseDownCore(InteractionArguments interactionArguments)
Parameters¶
interactionArguments InteractionArguments
This parameter is the interaction arguments for the method.
Returns¶
InteractiveResult
Interaction results of this method.
Exceptions¶
ArgumentNullException
If you pass a null as the interactionArguments, we will throw an ArgumentNullException.
MouseMoveCore(InteractionArguments)¶
This overrides the MouseMove logic in its base class InteractiveOverlay.
protected InteractiveResult MouseMoveCore(InteractionArguments interactionArguments)
Parameters¶
interactionArguments InteractionArguments
This parameter is the interaction arguments for the method.
Returns¶
InteractiveResult
Interaction results of this method.
Exceptions¶
ArgumentNullException
If you pass a null as the interactionArguments, we will throw an ArgumentNullException.
MouseUpCore(InteractionArguments)¶
This overrides the MouseUp logic in its base class InteractiveOverlay.
protected InteractiveResult MouseUpCore(InteractionArguments interactionArguments)
Parameters¶
interactionArguments InteractionArguments
This parameter is the interaction arguments for the method.
Returns¶
InteractiveResult
Interaction results of this method.
Exceptions¶
ArgumentNullException
If you pass a null as the interactionArguments, we will throw an ArgumentNullException.
MouseDoubleClickCore(InteractionArguments)¶
This overrides the MouseDoubleClick logic in its base class InteractiveOverlay.
protected InteractiveResult MouseDoubleClickCore(InteractionArguments interactionArguments)
Parameters¶
interactionArguments InteractionArguments
This parameter is the interaction arguments for the method.
Returns¶
InteractiveResult
Interaction results of this method.
Exceptions¶
ArgumentNullException
If you pass a null as the interactionArguments, we will throw an ArgumentNullException.
GetTrackingShape()¶
This method gets the current Tracking shape.
public BaseShape GetTrackingShape()
Returns¶
BaseShape
Returns a shape represents the current status of tracking shape.
Remarks:
This method is the concrete wrapper for the abstract method GetTrackingShapeCore. This method draws the representation of the overlay based on the extent you provided.
GetTrackingShapeCore()¶
This is the Core method of GetTrackingShape.You could overrides this method to have your own logic. This method gets the current Tracking shape.
protected BaseShape GetTrackingShapeCore()
Returns¶
BaseShape
Returns a shape represents the current status of tracking shape.
OnTrackEnded(TrackEndedTrackInteractiveOverlayEventArgs)¶
This event will be fired after the end of Tracking a shape.
protected void OnTrackEnded(TrackEndedTrackInteractiveOverlayEventArgs e)
Parameters¶
e TrackEndedTrackInteractiveOverlayEventArgs
The TrackEndedTrackInteractiveOverlayEventArgs passed for the event raised.
Returns¶
OnTrackEnding(TrackEndingTrackInteractiveOverlayEventArgs)¶
This event will be fired before the end of Tracking a shape.
protected void OnTrackEnding(TrackEndingTrackInteractiveOverlayEventArgs e)
Parameters¶
e TrackEndingTrackInteractiveOverlayEventArgs
The TrackEndingTrackInteractiveOverlayEventArgs passed for the event raised.
Returns¶
OnTrackStarting(TrackStartingTrackInteractiveOverlayEventArgs)¶
This event will be fired before the start of Tracking a shape.
protected void OnTrackStarting(TrackStartingTrackInteractiveOverlayEventArgs e)
Parameters¶
e TrackStartingTrackInteractiveOverlayEventArgs
The TrackStartingTrackInteractiveOverlayEventArgs passed for the event raised.
Returns¶
OnTrackStarted(TrackStartedTrackInteractiveOverlayEventArgs)¶
This event will be fired after the start of Tracking a shape.
protected void OnTrackStarted(TrackStartedTrackInteractiveOverlayEventArgs e)
Parameters¶
e TrackStartedTrackInteractiveOverlayEventArgs
The TrackStartedTrackInteractiveOverlayEventArgs passed for the event raised.
Returns¶
OnVertexAdding(VertexAddingTrackInteractiveOverlayEventArgs)¶
This event will be fired before adding a vertex to the Tracking shape.
protected void OnVertexAdding(VertexAddingTrackInteractiveOverlayEventArgs e)
Parameters¶
e VertexAddingTrackInteractiveOverlayEventArgs
The VertexAddingTrackInteractiveOverlayEventArgs passed for the event raised.
Returns¶
OnVertexAdded(VertexAddedTrackInteractiveOverlayEventArgs)¶
This event will be fired after adding a vertex to the Tracking shape.
protected void OnVertexAdded(VertexAddedTrackInteractiveOverlayEventArgs e)
Parameters¶
e VertexAddedTrackInteractiveOverlayEventArgs
The VertexAddedTrackInteractiveOverlayEventArgs passed for the event raised.
Returns¶
OnMouseMoved(MouseMovedTrackInteractiveOverlayEventArgs)¶
This event will be fired when mouse moved a vertex to the Tracking shape.
protected void OnMouseMoved(MouseMovedTrackInteractiveOverlayEventArgs e)
Parameters¶
e MouseMovedTrackInteractiveOverlayEventArgs
The MouseMovedTrackInteractiveOverlayEventArgs passed for the event raised.
Returns¶
ManipulationStartedCore(InteractionArguments)¶
protected InteractiveResult ManipulationStartedCore(InteractionArguments interactionArguments)
Parameters¶
interactionArguments InteractionArguments
Returns¶
ManipulationDeltaCore(InteractionArguments)¶
protected InteractiveResult ManipulationDeltaCore(InteractionArguments interactionArguments)
Parameters¶
interactionArguments InteractionArguments
Returns¶
ManipulationCompletedCore(InteractionArguments)¶
protected InteractiveResult ManipulationCompletedCore(InteractionArguments interactionArguments)
Parameters¶
interactionArguments InteractionArguments
Returns¶
TransformCore(RectangleShape, ExtentChangedType)¶
protected void TransformCore(RectangleShape targetExtent, ExtentChangedType extentChangedType)
Parameters¶
targetExtent RectangleShape
extentChangedType ExtentChangedType
Returns¶
DrawAsyncCore(RectangleShape, OverlayRefreshType, CancellationToken)¶
protected Task DrawAsyncCore(RectangleShape targetExtent, OverlayRefreshType overlayRefreshType, CancellationToken cancellationToken)
Parameters¶
targetExtent RectangleShape
overlayRefreshType OverlayRefreshType
cancellationToken CancellationToken
Returns¶
DrawContentCore(GeoCanvas)¶
protected Task DrawContentCore(GeoCanvas geoCanvas)
Parameters¶
geoCanvas GeoCanvas
Returns¶
DrawTileAsyncCore(GeoCanvas)¶
When overridden, draws overlay content onto the provided canvas before it is committed to the tile view.
protected Task DrawTileAsyncCore(GeoCanvas geoCanvas)
Parameters¶
geoCanvas GeoCanvas
The canvas being rendered to.
Returns¶
Task
A task that completes when drawing is finished.
SaveStateCore()¶
This method saves overlay state to a byte array.
protected Byte[] SaveStateCore()
Returns¶
Byte[]
A byte array indicates current overlay state.
LoadStateCore(Byte[])¶
This method restore the overlay state back from the specified state.
protected void LoadStateCore(Byte[] state)
Parameters¶
state Byte[]
This parameter indicates the state for restore the overlay.
Returns¶
WriteTrackShapeLayer()¶
protected bool WriteTrackShapeLayer()
Returns¶
Events¶
TrackEnded¶
This event will be fired after the end of tracking shape.
public event EventHandler<TrackEndedTrackInteractiveOverlayEventArgs> TrackEnded;
TrackEnding¶
This event will be fired before the end of tracking shape.
public event EventHandler<TrackEndingTrackInteractiveOverlayEventArgs> TrackEnding;
TrackStarted¶
This event will be fired after the start of tracking shape.
public event EventHandler<TrackStartedTrackInteractiveOverlayEventArgs> TrackStarted;
TrackStarting¶
This event will be fired before the start of tracking shape.
public event EventHandler<TrackStartingTrackInteractiveOverlayEventArgs> TrackStarting;
VertexAdded¶
This event will be fired after a vertex added to the tracking shape.
public event EventHandler<VertexAddedTrackInteractiveOverlayEventArgs> VertexAdded;
VertexAdding¶
This event will be fired before a vertex added to the tracking shape.
public event EventHandler<VertexAddingTrackInteractiveOverlayEventArgs> VertexAdding;
MouseMoved¶
This event will be fired when mouse moved on the vertex of tracking shape.
public event EventHandler<MouseMovedTrackInteractiveOverlayEventArgs> MouseMoved;
MapMouseDown¶
Occurs when the overlay dispatch loop visits this overlay for a mouse-down, just before runs.
public event EventHandler<MapMouseDownInteractiveOverlayEventArgs> MapMouseDown;
Remarks:
Per-overlay dispatch signal; a preceding overlay returning EventBubblingMode.NoBubble prevents this from firing for the current down. For an unconditional map-level notification subscribe to MapView.MapMouseDown instead.
MapMouseMove¶
Occurs when the overlay dispatch loop visits this overlay for a mouse move, just before runs.
public event EventHandler<MapMouseMoveInteractiveOverlayEventArgs> MapMouseMove;
Remarks:
This is the per-overlay dispatch signal — not a global "mouse moved on the map" event. A preceding InteractiveOverlay (for example TrackInteractiveOverlay while it is tracking) can return EventBubblingMode.NoBubble from its , which breaks the dispatch loop and prevents this event from firing on any later overlay for that move.
If you just need to observe every mouse move over the map (tooltip, status bar, hover UI), subscribe to MapView.MapMouseMove instead — that event is unconditional and fires once per physical move before any overlay dispatch.
MapMouseUp¶
Occurs when the overlay dispatch loop visits this overlay for a mouse-up, just before runs.
public event EventHandler<MapMouseUpInteractiveOverlayEventArgs> MapMouseUp;
Remarks:
Per-overlay dispatch signal; may be suppressed by a preceding overlay. For an unconditional map-level notification subscribe to MapView.MapMouseUp instead.
MapMouseClick¶
Occurs when the overlay dispatch loop visits this overlay for a click (press+release without movement), just before runs.
public event EventHandler<MapMouseClickInteractiveOverlayEventArgs> MapMouseClick;
Remarks:
Per-overlay dispatch signal; may be suppressed by a preceding overlay. For an unconditional map-level notification subscribe to MapView.MapClick instead.
MapMouseDoubleClick¶
Occurs when the overlay dispatch loop visits this overlay for a double-click, just before runs.
public event EventHandler<MapMouseDoubleClickInteractiveOverlayEventArgs> MapMouseDoubleClick;
Remarks:
Per-overlay dispatch signal; may be suppressed by a preceding overlay. For an unconditional map-level notification subscribe to MapView.MapDoubleClick instead.
MapMouseWheel¶
Occurs when the overlay dispatch loop visits this overlay for a wheel interaction, just before runs.
public event EventHandler<MapMouseWheelInteractiveOverlayEventArgs> MapMouseWheel;
Remarks:
Per-overlay dispatch signal; may be suppressed by a preceding overlay. For an unconditional map-level notification subscribe to MapView.MapMouseWheel instead.
MapMouseLeave¶
Occurs when the overlay dispatch loop visits this overlay after the pointer leaves the map, just before runs.
public event EventHandler<MapMouseLeaveInteractiveOverlayEventArgs> MapMouseLeave;
Remarks:
Per-overlay dispatch signal; may be suppressed by a preceding overlay. For an unconditional map-level notification subscribe to MapView.MapMouseLeave instead.
MapMouseEnter¶
Occurs when the overlay dispatch loop visits this overlay after the pointer enters the map, just before runs.
public event EventHandler<MapMouseEnterInteractiveOverlayEventArgs> MapMouseEnter;
Remarks:
Per-overlay dispatch signal; may be suppressed by a preceding overlay. For an unconditional map-level notification subscribe to MapView.MapMouseEnter instead.
MapKeyDown¶
Occurs when the overlay dispatch loop visits this overlay for a key-down, just before runs.
public event EventHandler<MapKeyDownInteractiveOverlayEventArgs> MapKeyDown;
Remarks:
Per-overlay dispatch signal; may be suppressed by a preceding overlay. For an unconditional map-level notification subscribe to MapView.MapKeyDown instead.
MapKeyUp¶
Occurs when the overlay dispatch loop visits this overlay for a key-up, just before runs.
public event EventHandler<MapKeyUpInteractiveOverlayEventArgs> MapKeyUp;
Remarks:
Per-overlay dispatch signal; may be suppressed by a preceding overlay. For an unconditional map-level notification subscribe to MapView.MapKeyUp instead.
Drawing¶
This event raises before the overlay is drawing.
public event EventHandler<DrawingOverlayEventArgs> Drawing;
Drawn¶
This event raises after the overlay is drawn.
public event EventHandler<DrawnOverlayEventArgs> Drawn;
DrawingAttribution¶
public event EventHandler<DrawingAttributionOverlayEventArgs> DrawingAttribution;
DrawnAttribution¶
public event EventHandler<DrawnAttributionOverlayEventArgs> DrawnAttribution;
ThrowingException¶
Occurs when the overlay catches an exception and allows subscribers to decide whether it should be suppressed.
public event EventHandler<ThrowingExceptionOverlayEventArgs> ThrowingException;
TargetUpdated¶
public event EventHandler<DataTransferEventArgs> TargetUpdated;
SourceUpdated¶
public event EventHandler<DataTransferEventArgs> SourceUpdated;
DataContextChanged¶
public event DependencyPropertyChangedEventHandler DataContextChanged;
RequestBringIntoView¶
public event RequestBringIntoViewEventHandler RequestBringIntoView;
SizeChanged¶
public event SizeChangedEventHandler SizeChanged;
Initialized¶
public event EventHandler Initialized;
Loaded¶
public event RoutedEventHandler Loaded;
Unloaded¶
public event RoutedEventHandler Unloaded;
ToolTipOpening¶
public event ToolTipEventHandler ToolTipOpening;
ToolTipClosing¶
public event ToolTipEventHandler ToolTipClosing;
ContextMenuOpening¶
public event ContextMenuEventHandler ContextMenuOpening;
ContextMenuClosing¶
public event ContextMenuEventHandler ContextMenuClosing;
PreviewMouseDown¶
public event MouseButtonEventHandler PreviewMouseDown;
MouseDown¶
public event MouseButtonEventHandler MouseDown;
PreviewMouseUp¶
public event MouseButtonEventHandler PreviewMouseUp;
MouseUp¶
public event MouseButtonEventHandler MouseUp;
PreviewMouseLeftButtonDown¶
public event MouseButtonEventHandler PreviewMouseLeftButtonDown;
MouseLeftButtonDown¶
public event MouseButtonEventHandler MouseLeftButtonDown;
PreviewMouseLeftButtonUp¶
public event MouseButtonEventHandler PreviewMouseLeftButtonUp;
MouseLeftButtonUp¶
public event MouseButtonEventHandler MouseLeftButtonUp;
PreviewMouseRightButtonDown¶
public event MouseButtonEventHandler PreviewMouseRightButtonDown;
MouseRightButtonDown¶
public event MouseButtonEventHandler MouseRightButtonDown;
PreviewMouseRightButtonUp¶
public event MouseButtonEventHandler PreviewMouseRightButtonUp;
MouseRightButtonUp¶
public event MouseButtonEventHandler MouseRightButtonUp;
PreviewMouseMove¶
public event MouseEventHandler PreviewMouseMove;
MouseMove¶
public event MouseEventHandler MouseMove;
PreviewMouseWheel¶
public event MouseWheelEventHandler PreviewMouseWheel;
MouseWheel¶
public event MouseWheelEventHandler MouseWheel;
MouseEnter¶
public event MouseEventHandler MouseEnter;
MouseLeave¶
public event MouseEventHandler MouseLeave;
GotMouseCapture¶
public event MouseEventHandler GotMouseCapture;
LostMouseCapture¶
public event MouseEventHandler LostMouseCapture;
QueryCursor¶
public event QueryCursorEventHandler QueryCursor;
PreviewStylusDown¶
public event StylusDownEventHandler PreviewStylusDown;
StylusDown¶
public event StylusDownEventHandler StylusDown;
PreviewStylusUp¶
public event StylusEventHandler PreviewStylusUp;
StylusUp¶
public event StylusEventHandler StylusUp;
PreviewStylusMove¶
public event StylusEventHandler PreviewStylusMove;
StylusMove¶
public event StylusEventHandler StylusMove;
PreviewStylusInAirMove¶
public event StylusEventHandler PreviewStylusInAirMove;
StylusInAirMove¶
public event StylusEventHandler StylusInAirMove;
StylusEnter¶
public event StylusEventHandler StylusEnter;
StylusLeave¶
public event StylusEventHandler StylusLeave;
PreviewStylusInRange¶
public event StylusEventHandler PreviewStylusInRange;
StylusInRange¶
public event StylusEventHandler StylusInRange;
PreviewStylusOutOfRange¶
public event StylusEventHandler PreviewStylusOutOfRange;
StylusOutOfRange¶
public event StylusEventHandler StylusOutOfRange;
PreviewStylusSystemGesture¶
public event StylusSystemGestureEventHandler PreviewStylusSystemGesture;
StylusSystemGesture¶
public event StylusSystemGestureEventHandler StylusSystemGesture;
GotStylusCapture¶
public event StylusEventHandler GotStylusCapture;
LostStylusCapture¶
public event StylusEventHandler LostStylusCapture;
StylusButtonDown¶
public event StylusButtonEventHandler StylusButtonDown;
StylusButtonUp¶
public event StylusButtonEventHandler StylusButtonUp;
PreviewStylusButtonDown¶
public event StylusButtonEventHandler PreviewStylusButtonDown;
PreviewStylusButtonUp¶
public event StylusButtonEventHandler PreviewStylusButtonUp;
PreviewKeyDown¶
public event KeyEventHandler PreviewKeyDown;
KeyDown¶
public event KeyEventHandler KeyDown;
PreviewKeyUp¶
public event KeyEventHandler PreviewKeyUp;
KeyUp¶
public event KeyEventHandler KeyUp;
PreviewGotKeyboardFocus¶
public event KeyboardFocusChangedEventHandler PreviewGotKeyboardFocus;
GotKeyboardFocus¶
public event KeyboardFocusChangedEventHandler GotKeyboardFocus;
PreviewLostKeyboardFocus¶
public event KeyboardFocusChangedEventHandler PreviewLostKeyboardFocus;
LostKeyboardFocus¶
public event KeyboardFocusChangedEventHandler LostKeyboardFocus;
PreviewTextInput¶
public event TextCompositionEventHandler PreviewTextInput;
TextInput¶
public event TextCompositionEventHandler TextInput;
PreviewQueryContinueDrag¶
public event QueryContinueDragEventHandler PreviewQueryContinueDrag;
QueryContinueDrag¶
public event QueryContinueDragEventHandler QueryContinueDrag;
PreviewGiveFeedback¶
public event GiveFeedbackEventHandler PreviewGiveFeedback;
GiveFeedback¶
public event GiveFeedbackEventHandler GiveFeedback;
PreviewDragEnter¶
public event DragEventHandler PreviewDragEnter;
DragEnter¶
public event DragEventHandler DragEnter;
PreviewDragOver¶
public event DragEventHandler PreviewDragOver;
DragOver¶
public event DragEventHandler DragOver;
PreviewDragLeave¶
public event DragEventHandler PreviewDragLeave;
DragLeave¶
public event DragEventHandler DragLeave;
PreviewDrop¶
public event DragEventHandler PreviewDrop;
Drop¶
public event DragEventHandler Drop;
PreviewTouchDown¶
public event EventHandler<TouchEventArgs> PreviewTouchDown;
TouchDown¶
public event EventHandler<TouchEventArgs> TouchDown;
PreviewTouchMove¶
public event EventHandler<TouchEventArgs> PreviewTouchMove;
TouchMove¶
public event EventHandler<TouchEventArgs> TouchMove;
PreviewTouchUp¶
public event EventHandler<TouchEventArgs> PreviewTouchUp;
TouchUp¶
public event EventHandler<TouchEventArgs> TouchUp;
GotTouchCapture¶
public event EventHandler<TouchEventArgs> GotTouchCapture;
LostTouchCapture¶
public event EventHandler<TouchEventArgs> LostTouchCapture;
TouchEnter¶
public event EventHandler<TouchEventArgs> TouchEnter;
TouchLeave¶
public event EventHandler<TouchEventArgs> TouchLeave;
IsMouseDirectlyOverChanged¶
public event DependencyPropertyChangedEventHandler IsMouseDirectlyOverChanged;
IsKeyboardFocusWithinChanged¶
public event DependencyPropertyChangedEventHandler IsKeyboardFocusWithinChanged;
IsMouseCapturedChanged¶
public event DependencyPropertyChangedEventHandler IsMouseCapturedChanged;
IsMouseCaptureWithinChanged¶
public event DependencyPropertyChangedEventHandler IsMouseCaptureWithinChanged;
IsStylusDirectlyOverChanged¶
public event DependencyPropertyChangedEventHandler IsStylusDirectlyOverChanged;
IsStylusCapturedChanged¶
public event DependencyPropertyChangedEventHandler IsStylusCapturedChanged;
IsStylusCaptureWithinChanged¶
public event DependencyPropertyChangedEventHandler IsStylusCaptureWithinChanged;
IsKeyboardFocusedChanged¶
public event DependencyPropertyChangedEventHandler IsKeyboardFocusedChanged;
LayoutUpdated¶
public event EventHandler LayoutUpdated;
GotFocus¶
public event RoutedEventHandler GotFocus;
LostFocus¶
public event RoutedEventHandler LostFocus;
IsEnabledChanged¶
public event DependencyPropertyChangedEventHandler IsEnabledChanged;
IsHitTestVisibleChanged¶
public event DependencyPropertyChangedEventHandler IsHitTestVisibleChanged;
IsVisibleChanged¶
public event DependencyPropertyChangedEventHandler IsVisibleChanged;
FocusableChanged¶
public event DependencyPropertyChangedEventHandler FocusableChanged;
ManipulationStarting¶
public event EventHandler<ManipulationStartingEventArgs> ManipulationStarting;
ManipulationStarted¶
public event EventHandler<ManipulationStartedEventArgs> ManipulationStarted;
ManipulationDelta¶
public event EventHandler<ManipulationDeltaEventArgs> ManipulationDelta;
ManipulationInertiaStarting¶
public event EventHandler<ManipulationInertiaStartingEventArgs> ManipulationInertiaStarting;
ManipulationBoundaryFeedback¶
public event EventHandler<ManipulationBoundaryFeedbackEventArgs> ManipulationBoundaryFeedback;
ManipulationCompleted¶
public event EventHandler<ManipulationCompletedEventArgs> ManipulationCompleted;