-
-
Notifications
You must be signed in to change notification settings - Fork 884
Description
Describe the bug {#describe-the-bug}
When the mouse is hovering over several areas of the NumberBox
which should not appear to be the TextBox
editable area , These areas include:
- Static icon areas, such as the one at the left of the control.
- Margins of the buttons on the right-side of the control.
- Padding of the
TextBox
editable area.
To Reproduce
- Run the WPF UI Gallery sample application
- Navigate to the Text...NumberBox page
- Carefully move the mouse over the areas that should not indicate that they are part of the
TextBox
editable area. - Notice that that the mouse cursor shows as an IBeam over the areas listed above in Describe the bug
Actual behavior
The mouse cursor shows as an IBeam over the areas listed above in Describe the bug.
Expected behavior
The Cursor
property should be Arrow
rather than IBeam
when the mouse hovers over areas that should not appear to be the TextBox
editable area..
OS version
Windows 11 (24H2) 26100.1.amd64fre.ge_release.240331-1435
.NET version
net9.0-windows
WPF-UI NuGet version
3.0.5
Additional context
In the fix, this was difficult to get the template just right, due to the NumberBox
being derived from TextBox
. Instead, it should be derived from Control
and contain a TextBox
in its ControlTemplate
. In other words, the relationship should be "has a TextBox
" instead of "is a TextBox
", but, that seems out of scope for this bug.