You might try inserting a await Task.Delay(1000) to force a yield? Or do the work on another thread using Task.Run. I would recommend you go back to small steps, just set the cursor with no other side affects, convince yourself that it works and then build up the functionality you want and find out where the conflict occurs.Īnother thought is that you might find that your action is fully synchronous and never yields the thread to change the pointer. The cursor setting should inform users of the mouse operations that can be performed at the current location, including: text selection, activating help or context menus, copying content, resizing tables, and so on. By removing the IsEnabled = false it started to work. The cursor CSS property sets the mouse cursor, if any, to show when the mouse pointer is over an element. GitHub - uhub/awesome-c-sharp: A curated list of awesome C-Sharp frameworks. The issue I found was as part of the action setting the cursor, I was also IsEnabled = false the containing UserControl as a quick way of showing the user that the TextBoxes were not available. A curated list of awesome C-Sharp frameworks, libraries and software. Hi had the same experience of using ProtectedCursor and finding that the mouse pointer didn't change, really wound me up for a while but I needed to give the user the visual feedback of being busy so perservered.įirstly I can confirm that ProtectedCursor does work, so stick with it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |