Esempio n. 1
0
        private static void OnWeekHeaderTextColorChanged(BindableObject bindable, object oldValue, object newValue)
        {
            DayGridHeader thisctrl = (DayGridHeader)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.header.TextColor = (Color)newValue;
            }
        }
Esempio n. 2
0
        private static void OnDayOfWeekFontAttributeChanged(BindableObject bindable, object oldValue, object newValue)
        {
            DayGridHeader thisctrl = (DayGridHeader)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.header.FontAttributes = (FontAttributes)newValue;
            }
        }
Esempio n. 3
0
        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;
            }
        }
Esempio n. 4
0
        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();
                }
            }
        }