HeatmapControl.QueryChartCursor Event
In This Article
Occurs when there is a request to display the cursor on the heatmap chart.
Namespace: DevExpress.Xpf.Charts.Heatmap
Assembly: DevExpress.Xpf.Charts.v24.2.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. |
Cursor |
Provides an image for the custom cursor. |
Cursor |
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 Routed |
Original |
Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.
Inherited from Routed |
Position | Gets or sets a value that specifies the position of a custom cursor on the chart’s diagram. |
Routed |
Gets or sets the Routed |
Source |
Gets or sets a reference to the object that raised the event.
Inherited from Routed |
The event data class exposes the following methods:
Method | Description |
---|---|
Invoke |
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 Routed |
On |
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 Routed |
#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