Changing the cursor of a WPF app is pretty simple. You can do it through procedural code as follows:
this.Cursor = Cursors.None;
There are several built in cursors such as a pen, cross, scroll, etc. You can also use a custom cursor as follows:
this.Cursor = new Cursor("CustomCursorImage.jpg"); Because Cursor is a dependency property, it can also be used in XAML. Here are two examples on how to use custom cursors via XAML:
<Button Content="Wait" Cursor="Wait"/><Button Content="CustomCursorImage.jpg"/>
Advertisement
May 26, 2008 at 11:09 am
This does not work with WPF.
Please sugust some way
September 16, 2008 at 1:29 pm
Can you be a little more specific? Why isn’t this working?