-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Enhancement] ContentButton #6872
Comments
This is, for me, one of the MUST HAVE features ASAP. The current solution of having to wrap things in a Frame / Grid to get a tap is not a cool solution. ^Most of the times we want, for example, a simple lable to be clickable. However, the label may be small, and adding the tap gesture only in the label has several problems:
|
As always, I have some implementation of this component :) I will create a PR |
Do we really need a separate ContentButton? Cant we somehow use the existing Button? |
@andreinitescu Yes, I need a separate control. for example, if I have a complicated button. with pictures, text, something else. |
And the implementation can be:
|
+1 I find it a bit disastrous the way the new IconImageSource (no replacement for Icon) has been implemented. There were historical reasons as far as I know, but I think it doesn't need to be that complicated. Text and Content (+ContentTemplate, ...) can coexist side by side. |
@andreinitescu And how do you like the idea, add the property |
I would also love to have this ASAP. This is a feature that is sorely lacking in Xamarin Forms. Having something like this would also allow me to create custom vector graphics using the Xamarin Forms Shapes for my buttons rather than using bitmaps/images and ImageButton. Whether it finds its home in a new control called ContentButton, or whether a new version of Button is created that allows for custom content, that does not matter to me. I'd love to see something like this:
|
Thanks for this suggestion! As Xamarin.Forms is now in maintenance mode, this will not happen anymore for Xamarin.Forms. We're only adding bugfixes and stability fixes. If this is still important to you, make sure to check the .NET MAUI repo and see if it's already on the roadmap. If not, feel free to open a discussion to discuss a change first or open an issue with a detailed feature request. Thanks! |
If anyone still looking for this I have a XF and MAUI control that achieves this - XF - https://github.com/IeuanWalker/Xamarin.Forms.StateButton |
Summary
I want to suggest an idea to make a ContentButton. I want to, like in WPF, I have the opportunity to make a button with any content inside. I understand that you can make a Grid/Frame/Stack and add a gesture recognizer to it.
But to do it every time already tired.
You also need to add a click animation.
API Changes
none
Intended Use Case
The text was updated successfully, but these errors were encountered: