<Button Text="Material Button" Visual="Material"/>
is changing the iOS button text also to upper. Is there any property present to make the button text smaller / configurable?
create button with material option
<Button Text="Material Button" Visual="Material"/>
Is should display the same text i have given "Material Button"
It is displaying ""MATERIAL BUTTON"
This behavior is according to the spec material design.
By default Material uses capitalized button text labels
But most likely a setting will be added to disable uppercaseTitle
@paymicro I agree!!!! But if we can expose a property for this feature. It will be an add on advantage. Since control with All CAP doesn't look that great in iOS. :)
A setting to diable UPPERCASE would be helpfull! For Android it works also if setting the Android styles.xml to
This should probably be part of https://github.com/xamarin/Xamarin.Forms/issues/5005.
I used CustomRenderer to to resolve this issue, you can inherit MaterialButtonRenderer and set Control.UppercaseTitle = false
This issue doesn't apply only to the Material Design renderers for Visual. Basic Android Material will do this also.
How about we default to Material but allow the developer to express specific expectations in a style?
I don't think this should be the material attached properties alone.
Looking at UWP It appears you would use a text converter to drive this behavior. In web/css you use text-transform
. I think the latter covers all the bases. The former alone would require implicitly overriding what the renderer default was, in this case all uppercase.
<Button Text="Button" TextTransform="Lowercase"/>
Other values:
@PureWeen @samhouts
Most helpful comment
This issue doesn't apply only to the Material Design renderers for Visual. Basic Android Material will do this also.
How about we default to Material but allow the developer to express specific expectations in a style?
I don't think this should be the material attached properties alone.
Looking at UWP It appears you would use a text converter to drive this behavior. In web/css you use
text-transform
. I think the latter covers all the bases. The former alone would require implicitly overriding what the renderer default was, in this case all uppercase.Other values:
@PureWeen @samhouts