Ejemplo n.º 1
0
        private static void OnSelectorBackgroundColorChanged(BindableObject bindable, object oldValue, object newValue)
        {
            IteratorControl thisctrl = (IteratorControl)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.iteratorGrid.BackgroundColor = (Color)newValue;
            }
        }
Ejemplo n.º 2
0
        private static void OnPrevPaddingChanged(BindableObject bindable, object oldValue, object newValue)
        {
            IteratorControl thisctrl = (IteratorControl)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.previous.Padding = (Thickness)newValue;
            }
        }
Ejemplo n.º 3
0
        private static void OnShowControlChanged(BindableObject bindable, object oldValue, object newValue)
        {
            IteratorControl thisctrl = (IteratorControl)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.iteratorGrid.IsVisible = (bool)newValue;
            }
        }
Ejemplo n.º 4
0
        private static void OnIteratorIconRightChanged(BindableObject bindable, object oldValue, object newValue)
        {
            IteratorControl thisctrl = (IteratorControl)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.next.Text = (string)newValue;
            }
        }
Ejemplo n.º 5
0
        private static void OnSelectedItemChanged(BindableObject bindable, object oldValue, object newValue)
        {
            IteratorControl thisctrl = (IteratorControl)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.iteratorName.Text = (newValue as Models.IIteratorItem).Name;
            }
        }
Ejemplo n.º 6
0
        private static void OnNameColorChanged(BindableObject bindable, object oldValue, object newValue)
        {
            IteratorControl thisctrl = (IteratorControl)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.iteratorName.TextColor = (Color)newValue;
            }
        }
Ejemplo n.º 7
0
        private static void OnIconFontFamilyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            IteratorControl thisctrl = (IteratorControl)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.previous.FontFamily = newValue.ToString();
                thisctrl.next.FontFamily     = newValue.ToString();
            }
        }
Ejemplo n.º 8
0
        private static void OnIconColorChanged(BindableObject bindable, object oldValue, object newValue)
        {
            IteratorControl thisctrl = (IteratorControl)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.previous.TextColor = (Color)newValue;
                thisctrl.next.TextColor     = (Color)newValue;
            }
        }
Ejemplo n.º 9
0
        private static void OnFontSizeChanged(BindableObject bindable, object oldValue, object newValue)
        {
            IteratorControl thisctrl = (IteratorControl)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                FontSizeConverter fsc   = new FontSizeConverter();
                double            fsize = (double)fsc.ConvertFromInvariantString((string)newValue);
                thisctrl.previous.FontSize     = fsize;
                thisctrl.next.FontSize         = fsize;
                thisctrl.iteratorName.FontSize = fsize;
            }
        }