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.