IOS textcell detail color

ClausElmannClausElmann DKMember ✭✭
edited January 2016 in Xamarin.Forms

Where can i find the default colors, so my custom cell's looks like the default on Ios and droid?

Label titleLabel = new Label()
{
    TextColor = Device.OnPlatform(
        Xamarin.Forms.Color.Default,
        Xamarin.Forms.Color.Accent,
        Xamarin.Forms.Color.Black),
    LineBreakMode = LineBreakMode.WordWrap
};

titleLabel.SetBinding(Label.TextProperty, "Title");

Label detailLabel = new Label()
{
    TextColor = Device.OnPlatform(
        Xamarin.Forms.Color.FromRgb(111,127,163), 
        Xamarin.Forms.Color.Black, 
        Xamarin.Forms.Color.Black),
    FontSize = Device.OnPlatform(
        Device.GetNamedSize(NamedSize.Micro, typeof(Label)),
        Device.GetNamedSize(NamedSize.Medium, typeof(Label)),
        Device.GetNamedSize(NamedSize.Default, typeof(Label))
    )
};
detailLabel.SetBinding(Label.TextProperty, "Subtitle");
Sign In or Register to comment.