Skip to main content
All docs
V24.1

HeatmapControl.QueryChartCursor Event

Occurs when there is a request to display the cursor on the heatmap chart.

Namespace: DevExpress.Xpf.Charts.Heatmap

Assembly: DevExpress.Xpf.Charts.v24.1.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public event QueryChartCursorEventHandler QueryChartCursor

Event Data

The QueryChartCursor event's data class is QueryChartCursorEventArgs. The following properties provide information specific to this event:

Property Description
Cursor Gets or sets the mouse cursor currently being shown for the chart.
CursorImage Provides an image for the custom cursor.
CursorImageOffset Specifies an image offset for a custom cursor on a chart diagram.
Handled Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Inherited from RoutedEventArgs.
OriginalSource Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs.
Position Gets or sets a value that specifies the position of a custom cursor on the chart’s diagram.
RoutedEvent Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs.
Source Gets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs.

The event data class exposes the following methods:

Method Description
InvokeEventHandler(Delegate, Object) When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation. Inherited from RoutedEventArgs.
OnSetSource(Object) When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. Inherited from RoutedEventArgs.

Remarks

In the QueryChartCursor event handler, you can provide custom cursors for the heatmap in various circumstances (for example, when the heatmap is scrolled or zoomed).

<dxh:HeatmapControl QueryChartCursor="heatmapControl_QueryChartCursor">
<!--...-->
</dxh:HeatmapControl>
using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media.Imaging;
//...
    private void heatmapControl_QueryChartCursor(object sender, QueryChartCursorEventArgs e) {
        e.Cursor = Cursors.None;
        e.CursorImage = new BitmapImage(new Uri(@"D:\CustomCursor\cursor.png", UriKind.RelativeOrAbsolute));
    }
See Also