This repository has been archived by the owner on May 1, 2024. It is now read-only.
2 New Properties That Should be Added to Buttons #12992
Unanswered
techprotom
asked this question in
Ideas
Replies: 2 comments 1 reply
-
Hey @techprotom, I don't if you are aware, but we have the |
Beta Was this translation helpful? Give feedback.
1 reply
-
For shadow effect: xamarin/XamarinCommunityToolkit#461 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Other platforms for creating applications such as Kotlin provide a much richer set of controls when compared to Xamarin.Forms.
But of course Xamarin.Forms has one key feature which makes it stand out from the rest: the ability to create multiplatform applications in record time. Xamarin.Forms developers have done an amazing job on providing more options on the UI-side of things - but I do think that more time and effort needs to be invested in using XAML/MVU for creating the UI - instead of having to create custom renderers all of the time.
Crucial properties on components which will be used tens of thousands of times (such as buttons) are missing key properties that if added could make Xamarin.Forms that much better to use:
Proposal 1 - the ability to set uppercase and lowercase on buttons
Right now - I am creating a custom renderer just to make it so button text is displayed as lower-case.
Xamarin.Forms should consider adding a property titled 'IsUpperCase' on each button. The user will have the option to set this to either true or false. Realistically - this should not be a massive problem to implement. Sentence case is not my preferred way of creating buttons (not always) - so this can open the eyes up of many UI designers such as me.
Example
<Button Text="Hello" IsUpperCase="False"/>
This shouldn't be a problem to implement with bindable properties.
Propsal 2 - the ability to add shadows to buttons/other components
Shadows can add depth to the user interface - here is an example for creating a shadow property on a button:
<Button Text="Hello" IsUpperCase="False"> <Button.Effects><DropShadowEffect X="5" Y="3" Shadow="15px"> </Button.Effects></Button>
The implementation could be similar to that of a UWP/WPF button.
I am just adding 2 properties for now - but if anyone has anymore ideas please tell me below.
What do you guys think about this?
Beta Was this translation helpful? Give feedback.
All reactions