![]() ![]() Return (InputSystemCursorShape)GetValue(CursorProperty) ĪssociatedObject.Loaded += AssociatedObject_Loaded ĪssociatedObject.Loaded -= AssociatedObject_Loaded Public static readonly DependencyProperty CursorProperty = DependencyProperty.Register("Cursor", typeof(InputSystemCursorShape), typeof(CursorBehavior), new PropertyMetadata(InputSystemCursorShape.Arrow)) Type.InvokeMember("ProtectedCursor", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.SetProperty | BindingFlags.Instance, null, uiElement, new object ) Public static void ChangeCursor(this UIElement uiElement, InputCursor cursor) Yes, reflection is the only way I've found to do it, I've created an extension method: To: microsoft/WindowsAppSDK devmikew Mention Re: Changing the mouse cursor in WinUI 3. You are receiving this because you commented.Message ID: Was this translation helpful? Give feedback. Reply to this email directly, view it on GitHub, or unsubscribe. I don't understand what Microsoft is thinking making this SDK so unusable on so many levels. There seems to be an extension property FrameworkElementExtensions.Cursor in the community toolkit but it doesn't seem to do anything.Īfter less than a day of attempting to explore porting my WPF app to WinUI it's painfully obvious this thing is not ready for prime time. To: microsoft/WindowsAppSDK devmikew Comment Re: Changing the mouse cursor in WinUI 3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |