You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@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.
You can raise an API proposal for the same. After review we can proceed with the implementation.
@fraluderin , there is a style defined for TextBoxBase in Fluent control styles, DefaultTextBoxBaseStyle. I haven't checked it yet, but this shall load the TextBox without the clear button.
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: