Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Attempts to use the Appearance proxy in native iOS to style buttons fails, due to the use of UIButtonType.RoundedRect when constructing the native control in the default ButtonRenderer. UIButtonType.RoundedRect was deprecated in iOS 7, and replaced by UIButtonType.System, which ignores properties from the Appearance. Therefore, using the Appearance property to attempt to style buttons in a Xamarin.Forms app fails.
When properties are set on UIButton.Appearance, Button properties should match this when not set explicitly otherwise.
Button properties do not match UIButton.Appearance.
> UIButton.Appearance.SetTintColor(UIColor.Red, UIControlState.Normal);
Default Button.TextColor appears as blue.
In the ButtonRenderer, replace
> this.SetNativeControl(new UIButton(UIButtonType.RoundedRect));
> this.SetNativeControl(new UIButton(UIButtonType.Custom));
Extend ButtonRenderer, use UIButton.Appearance in default cases. See attachment.
Created attachment 15663 [details]
Reproduction with workaround renderer
Should be fixed on 2.3.5-pre1
Have verified the bug with latest forms build version 22.214.171.1246-pre6.
Issue is seems to be fixed with latest build.
Screen cast : https://www.screencast.com/t/NldOZDhQGOcM
Build Info: https://gist.github.com/gangrade-swati/4c84bc1572bfab6ebf93774e9fe22af6