private static void OnSelectorBackgroundColorChanged(BindableObject bindable, object oldValue, object newValue) { IteratorControl thisctrl = (IteratorControl)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.iteratorGrid.BackgroundColor = (Color)newValue; } }
private static void OnPrevPaddingChanged(BindableObject bindable, object oldValue, object newValue) { IteratorControl thisctrl = (IteratorControl)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.previous.Padding = (Thickness)newValue; } }
private static void OnShowControlChanged(BindableObject bindable, object oldValue, object newValue) { IteratorControl thisctrl = (IteratorControl)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.iteratorGrid.IsVisible = (bool)newValue; } }
private static void OnIteratorIconRightChanged(BindableObject bindable, object oldValue, object newValue) { IteratorControl thisctrl = (IteratorControl)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.next.Text = (string)newValue; } }
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; } }
private static void OnNameColorChanged(BindableObject bindable, object oldValue, object newValue) { IteratorControl thisctrl = (IteratorControl)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.iteratorName.TextColor = (Color)newValue; } }
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(); } }
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; } }
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; } }