-
Notifications
You must be signed in to change notification settings - Fork 693
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
'ProtectedCursor': is not a member of 'winrt::Microsoft::UI::Xaml::UIElement' #9277
Comments
Downgrade C++/WinRT if you want this, this is a breaking change in the C++ projection. (Edited to be consistent with the post by @sylveon.) |
This is not a bug, it's an intended change. The proper way is to do it like in C#, by inheriting from the UI element. You can also do |
There's a bigger question about whether or not this member should be made public in a future WASDK update (so that C# users can also enjoy being able to set the cursor without inheritance), or a better API for setting the cursor introduced. |
thanks for the workaround. yeah it would be best for there to be public API to change cursors. I can close this if you think that a public API should be tracked in a different issue. |
A public |
Describe the bug
In cpp,
UIElement.ProtectedCursor()
throws compiler error'ProtectedCursor': is not a member of 'winrt::Microsoft::UI::Xaml::UIElement'
on 1.4.4Steps to reproduce the bug
As in the description
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.4.4: 1.4.231219000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: