microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

how to disable `x` clear icon when editing in NumberbBox

Open heartacker opened this issue 3 years ago • 6 comments

Describe the bug

winui3gallery://item/NumberBox

i do not need this X image

Steps to reproduce the bug

No property to disable this

Expected behavior

we could be able to show or hide

Screenshots

No response

NuGet package version

No response

Windows app type

  • [ ] UWP
  • [X] Win32

Device form factor

Desktop

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

heartacker avatar Aug 12 '22 07:08 heartacker

Convince corporate Microsoft to invest more in WinUI so proposals like this show movement after two years:

https://github.com/microsoft/microsoft-ui-xaml/issues/3158

Or just copy and modify the style to do it yourself like I had to.

kmgallahan avatar Aug 13 '22 23:08 kmgallahan

Is there any way to remove this X or we still do not have any updates regarding this?

cptalpdeniz avatar Dec 10 '22 02:12 cptalpdeniz

@gabbybilka please

heartacker avatar Dec 10 '22 02:12 heartacker

You can use the NumerBoxEx NuGet package that has these DependencyProperties. Check it out.

  • IsDeleteButtonVisible
  • NumberHorizontalAlignment

Disclamer: I'm the maintainer of the NuGet package.

AndrewKeepCoding avatar Jan 31 '23 15:01 AndrewKeepCoding

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 07 '23 14:08 github-actions[bot]

no

heartacker avatar Aug 07 '23 14:08 heartacker