private static void OnWeekHeaderTextColorChanged(BindableObject bindable, object oldValue, object newValue) { DayGridHeader thisctrl = (DayGridHeader)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.header.TextColor = (Color)newValue; } }
private static void OnDayOfWeekFontAttributeChanged(BindableObject bindable, object oldValue, object newValue) { DayGridHeader thisctrl = (DayGridHeader)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.header.FontAttributes = (FontAttributes)newValue; } }
private static void OnDayOfWeekFontSizeChanged(BindableObject bindable, object oldValue, object newValue) { DayGridHeader thisctrl = (DayGridHeader)bindable; if (thisctrl != null && oldValue != newValue) { FontSizeConverter fsc = new FontSizeConverter(); double fsize = (double)fsc.ConvertFromInvariantString((string)newValue); thisctrl.header.FontSize = fsize; } }
private static void OnDayOfWeekChanged(BindableObject bindable, object oldValue, object newValue) { DayGridHeader thisctrl = (DayGridHeader)bindable; if (thisctrl != null && oldValue != newValue) { Label label = (Label)thisctrl.FindByName("header"); if (label != null) { label.Text = newValue.ToString(); } } }