Home > Enterprise >  Missing cursors in WPF
Missing cursors in WPF

Time:05-02

Windows Forms has the cursor types Cursors.NoMoveHoriz, Cursors.NoMoveVert and Cursors.Default.

These identifiers do not exist in WPF. Is there a way to obtain them anyway (without a reference to WinForms) ?

CodePudding user response:

I think these Cursors just have different names in WPF.

  • Cursors.NoMoveHoriz is Cursors.ScrollWE
  • Cursors.NoMoveVert is Cursors.ScrollNS
  • Cursors.Default is Cursors.None

At least that's what this .NET fx source code suggests: https://www.dotnetframework.org/default.aspx/Dotnetfx_Vista_SP2/Dotnetfx_Vista_SP2/8@0@50727@4016/DEVDIV/depot/DevDiv/releases/Orcas/QFE/wpf/src/WinFormsIntegration/System/Windows/Integration/Convert@cs/1/Convert@cs

  • Related