Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the cursor type while hovering over the scrollviewer element of TextBox control in WINUI Desktop project #5384

Closed
Subashini2129 opened this issue Jul 7, 2021 · 2 comments
Labels
area-TextBox TextBox, RichEditBox question

Comments

@Subashini2129
Copy link

Subashini2129 commented Jul 7, 2021

Hi Team,

In TextBox control, I have tried to change the cursor type using its ProtectedCursor property but it does not have any effect. Also, I have tried changing the ProtectedCursor property of the scroll viewer element contained in TextBox, but it also does not have any effect. Please find the sample and screenshot below:

Sample:

TextBox-sample.zip

Screenshot:

image

Note: It always shows IBeam cursor type when hovering over the scrollviewer element in TextBox control instead of hand type cursor which was set in application level.

Could you please suggest any solution regarding it?

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jul 7, 2021
@chrisglein chrisglein added the area-TextBox TextBox, RichEditBox label Jul 21, 2021
@michael-hawker
Copy link
Collaborator

🦙 Related to #506 and #4834

@chrisglein
Copy link
Member

This is a gap today, but there's a great proposal here: #506.
In the meantime maybe you could call into the Win32 APIs directly to SetCursor, but that's likely a rough experience. Check up on that proposal and see if it looks like what you're looking for.

@ghost ghost removed the needs-triage Issue needs to be triaged by the area owners label Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TextBox TextBox, RichEditBox question
Projects
None yet
Development

No branches or pull requests

4 participants