I have a window within my app, this is a small window, but 80% of it is textbox. The annoyance I am having is that when I hover my mouse over the textbox, the cursor remains as an arrow, and I want to set an IBeam.
I have tried:
- setting Property="Cursor" Value="IBeam" in the ResourceDictionary (Style & Style.Triggers)
- setting Cursor="IBeam" explicitly in the window xaml.
I have noticed that if I click the mouse within the textbox, then I see the expected cursor, but nothing will make the hover work.
Is there any other way I can try to set the cursor?
** Edit ** My Textbox has an adorner layer associated to it (I do have IsHitTestVisible = false set for that)
You can try with
OnMouseEnterof the textbox event and set the cursor to an IBeam and then reset the cursor to an arrow viaOnMouseleaveevent. Hope it helps.