How to change mouse cursor to an hourglass

Dec 1, 2011 at 3:28 PM

While doing some processing in a new-grid I would like to change the mouse cursor to an hourglass so that the user has some indication to wait, then I'll want to change it back again.

 

Can I do this in showui?

Coordinator
Dec 2, 2011 at 6:43 AM
Edited Dec 2, 2011 at 6:47 AM

Of course.

 

$window.Cursor = "Wait"

 

The full list of available (built in) cursors is:

[System.Windows.Input.Cursors] | Get-Member -sta | Select-Object -expand Name

Equals
ReferenceEquals
AppStarting
Arrow
ArrowCD
Cross
Hand
Help
IBeam
No
None
Pen
ScrollAll
ScrollE
ScrollN
ScrollNE
ScrollNS
ScrollNW
ScrollS
ScrollSE
ScrollSW
ScrollW
ScrollWE
SizeAll
SizeNESW
SizeNS
SizeNWSE
SizeWE
UpArrow
Wait

Dec 9, 2011 at 9:07 PM

nice thanks!