-
Notifications
You must be signed in to change notification settings - Fork 710
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
[Preview 4] Inconsistent Cursor Behavior with GridSplitter in WinUI3 Desktop #4201
Comments
@michael-hawker FYI, Does GridSplitter use CoreWindow? (API's with CurrentView) |
@StephenLPeters Yes, this is because it was trying to modify the PointerCursor with a We haven't evaluated if we have a workaround or a proper fix yet, as the protected FYI @azchohfi I believe you're aware of this issue, but we don't have an issue tracking this in our repo currently for |
@michael-hawker Yeah, that should be enough., but we need to figure out how to fix this. And yes, I was aware of the issue. |
Based on how We may refactor this control in the 7.1 version of the Toolkit which slipped from 7.0. Though we normally don't ship breaking changes, so we have to understand the implications of doing that work in a minor release. The new implementation should be simpler and may be able to workaround this issue. Otherwise, we don't have plans currently for GridSplitter specifically to try and work-around this in the meantime as that'd be just as much work as our eventual planned refactor. #4834 did also call out the general need to set the cursor for a window, which is what the |
@michael-hawker There was a discussion in #4682 (comment) on an accessible Cursor. In the answer #4682 (comment) I was redirected to a "spec" for a public Cursor Property https://github.com/microsoft/microsoft-ui-xaml-specs/blob/master/active/UIElement/ElementCursor.md. That is the up-to-date information that is publicly accessible. I'm keen to hear more on this topic if you find more information. |
@michael-hawker As @jschwizer99 said, I think We plan to eventually have a public |
@codendone the current version of We've been wanting to re-write GridSplitter for a while, we have a pending start of that work that didn't make it in 7.0. In that version we'll have removed this helper class, so it should resolve the problem for this particular scenario for now. Still concerned about other scenarios though, as our extensions to provide developers ways to change the cursor on any arbitrary element will still be broken, as is an easy way to change the cursor globally at the app-level, correct? |
@michael-hawker What is The |
Collapsing this down to one issue, and I'm choosing to keep #4834 open, since that has the more recent sample. |
Describe the bug
In WinUI3 Preview4, the cursor does not change to the Resize cursor icon on the hover over before adjusting the GridSplitter as it does in UWP.
Steps to reproduce the bug
Expected behavior
We expect the cursor icon to change to the Resize icon when hovering over the GridSplitter.
Screenshots
Screenshot#1 - Expected Behavior
Screenshot#2 - Current Behavior
Version Info
NuGet package version:
[Microsoft.Toolkit.Uwp.UI.Controls 8.0.0-preview4]
[Microsoft.WinUI 3.0.0-preview4.210210.4]
Targeting:
Target: Universal Windows
Target version: Windows 10, version 1809 (10.0; Build 17763)
Min version: Windows 10, version 1803 (10.0; Build 17134)
Windows app type:
Additional context
The text was updated successfully, but these errors were encountered: