Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Label background color

$
0
0

Can anyone explain to me please why the iOS renderer for Label overrides the default SetBackgroundColor method? The default method sets the BackgroundColor of the Control property (in iOS this would be the UILabel itself). But the LabelRenderer overrides this and sets the BackgroundColor property of the container instead.

The Android renderer appears to pull a similar trick, calling SetBackgroundColor on the ViewGroup rather than on the Control.

This looks like a bug to me but I don't know if there would be some special reason for it. It certainly makes it awkward to customise any aspects of the underlying UILabel or Label controls because the background colour of the enclosing container gets in the way.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>