-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete button in Win 11 themed TextBox #10180
Comments
@fraluderin right now the only way to remove the delete button is to override the template. But your suggestion looks fine we can introduce a property that will control the visibility of the delete button. |
@fraluderin , there is a style defined for TextBoxBase in Fluent control styles,
|
@dipeshmsft Yes you're right, I checked it now and it works. I added this in my TextBox XAML:
I have no sufficient experience to help you decide which should be the default behavior (show or not the clear button in a TextBox). |
Thanks for the update @fraluderin. I will go ahead and close this issue now, but I will add the reference to this issue is another bug that tracks other Fluent issues. |
I'm starting using new Win 11 theming for my new WPF projects.
I noticed that a "delete button" was added by default in the
TextBox
control:Is there a simple way to remove that button, e.g. with a property
DisplayDeleteButton
? I think this should be customizable to allow easy usage in scenarios that don't require a delete button.If this has not been implemented yet, I'm available to contribute (but I'd need to be pointed in the right direction).
The text was updated successfully, but these errors were encountered: