예제 #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;
            }
        }
예제 #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;
            }
        }
예제 #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;
            }
        }
예제 #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();
                }
            }
        }