void UpdateText() { TextView nativeLabelView = (TextView)Control; nativeLabelView.TextSize = 14.0f; nativeLabelView.SetTypeface(null, TypefaceStyle.Bold); nativeLabelView.SetTextColor(Color.FromRgb(95, 92, 97).ToAndroid()); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { string s = (string)value; if (!string.IsNullOrEmpty(s)) { if (s.Contains("-")) { return(Color.FromRgb(204, 0, 0)); } else { return(Color.FromRgb(153, 204, 10)); } } return(Color.Green); }
private static Color GetForegroundColor(VisualElement control) { return(control.IsEnabled ? Color.FromRgb(254, 254, 254) : Color.FromRgb(140, 123, 219)); }
private static Color GetBackgroundColor(VisualElement control) { return(control.IsEnabled ? Color.FromRgb(100, 83, 179) : Color.FromRgb(73, 53, 165)); }
public override Color GetCaptionSummaryRowBackgroundColor() { return(Color.FromRgb(155, 212, 245)); }
public override Color GetAlternatingRowBackgroundColor() { return(Color.FromRgb(251, 232, 233)); }
public override Color GetHeaderBackgroundColor() { return(Color.FromRgb(251, 232, 233)); }
public override Color GetHeaderForegroundColor() { return(Color.FromRgb(255, 255, 255)); }
public PinElement() { BackgroundColor = Color.FromRgb(255, 100, 100); TextColor = Color.White; }