Maybe this might be useful to somebody, so here's the very simple answer
to the question:

Just override the GetCell method:

       public override UITableViewCell GetCell(UITableView tv)
        {
            var c = base.GetCell(tv);
            c.DetailTextLabel.BackgroundColor = UIColor.Clear;
            return c;
        }

HTH somebody,

Guido

On 22 January 2013 20:08, Guido Van Hoecke <[email protected]> wrote:
> Hi,,
>
> I create StyledStingElements of type UITableViewCellStyle.Value1 with
> following properties:
>
> {
>    Accessory = UITableViewCellAccessory.DisclosureIndicator,
>    DetailColor = UIColor.Orange,
>    TextColor = UIColor.Black,
>    Value = "blabla",
>    BackgroundColor = UIColor.FromPatternImage(UIImage.FromFile(filename))
> }
>
> The background pattern draws fine, and the black text is rendered
> as if its background is clear: it does not hide the gradient
> background rendered by the PatternImage.
>
> However, the 'Value' is rendered Orange as requested but on
> White, which is not requested nor desired! I really want it using
> a clear background so that the gradient background is not
> overwritten by a white rectangle with orange text.
>
> Any ideas or suggestions?
>
> Thanks in advance,
>
>
> Guido
>
> --
> Peace be to this house, and all that dwell in it.
>
> http://vanhoecke.org ... and go2 places!
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to