Jonathan Allen
Jonathan Allen

Reputation: 70287

Silverlight: Overriding Mouse Cursor

Is there a way to say that a mouse cursor set on one control overrides the mouse cursor on all clild controls?

Currently setting the cursor to the hourglass mostly works, but I've got one control that is keeping its original cursor.

Upvotes: 1

Views: 731

Answers (2)

Drew Noakes
Drew Noakes

Reputation: 310792

Children will inherit the mouse cursor setting of their parents unless they have a mouse cursor setting of their own.

To avoid this, one solution involves placing a transparent control over the top whole area you want the busy cursor to be seen, and setting the cursor on that.

Upvotes: 1

Casey Margell
Casey Margell

Reputation: 224

Strange that the children don't respect the cursor defined by the parent but thus is life. Worst case since this only effects one button you could try setting the cursor programmatically:

myButton.Cursor = Cursors.Hand;

Upvotes: 1

Related Questions