unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.06k stars 735 forks source link

Implement `UIElement.ProtectedCursor` #9987

Open FrozDark opened 2 years ago

FrozDark commented 2 years ago

Current behavior

ProtectedCursor is not implemented in Uno

Expected behavior

ProtectedCursor implementation as in WinUI https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.protectedcursor?view=windows-app-sdk-1.1

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

Use pointer events and change through CoreWindow

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

No response

Affected platforms

iOS, Android, macOS, Skia (WPF), Skia (GTK on Linux/macOS/Windows), Skia (Tizen)

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

To match WinUI code base

Related to https://github.com/unoplatform/uno/issues/7777

agneszitte commented 1 year ago

Implemented for Wasm (Related to https://github.com/unoplatform/uno/pull/12285)