DocumentViewer.Cursor seems to have no effect. We need to set the default cursor to Default and AppStarting cursors at certain times, but if the document viewer shows the link cursor or any non-default cursor we do not want to override that. How can we hook into the calculation that determines which cursor is shown?
DocumentViewer - DocumentViewer's Cursor property has no effect
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v15.2.4Download Official Update
- v15.1.9Download Official Update
Hello Joseph,
It's possible to change the default cursor to a custom one when a user hovers a specific report control. In the XRControl.PreviewMouseMove event handler, provide a custom cursor for the preview control by using the Control.Cursor property. For instance:
C#private void xrLabel_PreviewMouseMove(object sender, PreviewMouseEventArgs e) {
e.PreviewControl.Cursor = Cursors.Help;
}
The result will be as follows: see the video.
If your scenario is different, please clarify it.
[Posted by Joseph N. Musser II]
This is what I got. Works well as far as I can tell. https://gist.github.com/jnm2/d9ca8b862ba4e55d9ec2
It would be nice if this was the behavior by default so people don't have to use the subclass.
Hello Joseph,
We appreciate your research. I am happy to hear that you've found the solution. FYI: I've informed our developers that the DocumentViewer's Cursor property value is not taken into account so they can research this behavior. Thank you for pointing this out.
Thank you Jannet! You have no idea how much it means to me that DevExpress takes these things seriously.