private static void OnButtonWidthRequestChanged(BindableObject bindable, object oldValue, object newValue) { ESILabelButton thisctrl = (ESILabelButton)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.labelText.WidthRequest = (double)newValue; } }
private static void OnCommandChanged(BindableObject bindable, object oldValue, object newValue) { ESILabelButton thisctrl = (ESILabelButton)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.ClickCommand = (ICommand)newValue; } }
private static void OnButtonCornerRadiusChanged(BindableObject bindable, object oldValue, object newValue) { ESILabelButton thisctrl = (ESILabelButton)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.frame.CornerRadius = (float)newValue; } }
private static void OnButtonIconFamilyChanged(BindableObject bindable, object oldValue, object newValue) { ESILabelButton thisctrl = (ESILabelButton)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.labelIcon.FontFamily = (string)newValue; } }
private static void OnTextColorChanged(BindableObject bindable, object oldValue, object newValue) { ESILabelButton thisctrl = (ESILabelButton)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.labelText.TextColor = (Color)newValue; } }
private static void OnButtonLineBreakModeChanged(BindableObject bindable, object oldValue, object newValue) { ESILabelButton thisctrl = (ESILabelButton)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.labelText.LineBreakMode = (LineBreakMode)newValue; } }
private static void OnButtonMarginChanged(BindableObject bindable, object oldValue, object newValue) { ESILabelButton thisctrl = (ESILabelButton)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.frame.Margin = (Thickness)newValue; } }
private static void OnButtonBackgroundChanged(BindableObject bindable, object oldValue, object newValue) { ESILabelButton thisctrl = (ESILabelButton)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.framebase.BackgroundColor = (Color)newValue; } }
private static void OnButtonAttributesChanged(BindableObject bindable, object oldValue, object newValue) { ESILabelButton thisctrl = (ESILabelButton)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.labelText.FontAttributes = (FontAttributes)newValue; thisctrl.labelIcon.FontAttributes = (FontAttributes)newValue; } }
private static void OnButtonTextMarginChanged(BindableObject bindable, object oldValue, object newValue) { ESILabelButton thisctrl = (ESILabelButton)bindable; if (thisctrl != null && oldValue != newValue) { Thickness thismargin = (Thickness)newValue; thisctrl.labelText.Margin = thismargin; thisctrl.labelIcon.Margin = new Thickness(0, 0, thismargin.Left, 0); } }