Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I determine the Cursor size in WPF?

Tags:

wpf

In Windows Forms there is a Cursor.Size Property that allows you to get the size (width/height) of the cursor object. How can I determine this information in WPF?

like image 776
Ananize Scott Avatar asked Nov 07 '11 15:11

Ananize Scott


People also ask

What size is a cursor?

Although the cursor size is also based on individual ope- rating systems and user preference, it usually ranges from 16x16 pixels to 32x32 pixels large.

How do I change the size of my cursor in C#?

Given the normal Console in C#, the task is to change the CursorSize of the Console. Approach: This can be done using the CursorSize property in the Console class of the System package in C#. It gets or sets the height of the cursor within a character cell in percentage.

How big can a custom cursor be?

1 Answer. Show activity on this post. As you already know, you cannot have a custom cursor that big: Windows has a limitation of 32x32 pixels. If you want bigger than that, you'll need to use a DOM element containing your cursor image, and get it to follow the cursor.


1 Answers

The SystemParameters class exposes CursorWidth and CursorHeight properties.

like image 52
AndrewS Avatar answered Nov 14 '22 14:11

AndrewS