-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Suggestion] Add a way to add trailing buttons to the interior of controls like TextBox and ComboBox #8
Comments
thanks for suggestion. i will consider this.
|
Thank you, but I was hoping for a slightly easier and more reusable way, like a new control with properties or something like that. Thanks for considering it! |
Something like:
|
This is something that will almost certainly be implemented, but I don't agree with the names.
or
|
Hi @MPITech I didn't add this feature to the combobox because the combobox is a more complex control and I avoid any complexity. for example:
This issue can now be closed. |
Wow you are great, thanks so much! Looking forward to using it! |
The next preview version will be released when I add feature #3 |
Hi, my friend. Just wanted to say thanks again for the TextBox with Content - it works perfectly and looks great. Is there a way for you to do the same for NumberBoxes? Or are they just as complicated for you as the ComboBoxes? |
Hi @MPITech
then copy-paste microsoft styles: https://github.com/microsoft/microsoft-ui-xaml/blob/main/src/controls/dev/NumberBox/NumberBox.xaml
find textbox and change as you want it. also i added a TextBoxButtonStyle in DevWinUI so you can add a Button and change style to TextBoxButtonStyle, so they looks fine. |
Got it, understood. Thanks! |
Hi!
The application I am converting from WinForms to WinUI used DevExpress controls in WinForms. Their controls had a very useful UI feature for adding trailing buttons to the right side of textboxes, comboboxes, etc. Each could have their own icon, run its own code when clicked, and have their own tooltip when hovered over. This is great for when you need to add a related command button next to a field but not want to commit an entire button to it next to the field. It also makes things look cleaner.
It would be so awesome if you could either create new TextBox and ComboBox controls that have this capability, or even better, a reusable extension of some kind to add trailing buttons to the interior of other controls easily.
This would look similar to the WinUI "X" (clear) button when text is entered into a textbox:
Here are some examples from my WinForms app (each are explained to the user using a tooltip on hover):
Thanks for the consideration and your great work!
The text was updated successfully, but these errors were encountered: