private static void OnFormatPhoneNumberChanged(BindableObject bindable, object oldValue, object newValue) { ESIPhoneEntry thisctrl = (ESIPhoneEntry)bindable; if (thisctrl != null && oldValue != newValue) { //thisctrl.FormatPhoneNumber = (Func<string,string>)newValue; } }
private static void OnPhoneTitleChanged(BindableObject bindable, object oldValue, object newValue) { ESIPhoneEntry thisctrl = (ESIPhoneEntry)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.phoneTitle.Text = (string)newValue; } }
private static void OnCanEditChanged(BindableObject bindable, object oldValue, object newValue) { ESIPhoneEntry thisctrl = (ESIPhoneEntry)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.SetVisibility((bool)newValue); } }
private static void OnRequiredMessageChanged(BindableObject bindable, object oldValue, object newValue) { ESIPhoneEntry thisctrl = (ESIPhoneEntry)bindable; if (thisctrl != null && oldValue != newValue) { //thisctrl.RequiredMessage = (string)newValue; } }
private static void OnReadOnlyPlaceHolderColorChanged(BindableObject bindable, object oldValue, object newValue) { ESIPhoneEntry thisctrl = (ESIPhoneEntry)bindable; if (thisctrl != null && oldValue != newValue) { //thisctrl.ReadOnlyPlaceHolderColor = (Color)newValue; } }
private static void OnSelectedPhoneChanged(BindableObject bindable, object oldValue, object newValue) { ESIPhoneEntry thisctrl = (ESIPhoneEntry)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.phone.Text = newValue.ToString(); thisctrl.PhoneNumberChanged(newValue.ToString()); } }
private static void OnSelectedPhoneMarginChanged(BindableObject bindable, object oldValue, object newValue) { ESIPhoneEntry thisctrl = (ESIPhoneEntry)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.phone.Margin = (Thickness)newValue; thisctrl.readOnlyPhone.Margin = (Thickness)newValue; } }
private static void OnShowRequiredFlagChanged(BindableObject bindable, object oldValue, object newValue) { ESIPhoneEntry thisctrl = (ESIPhoneEntry)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.required.IsVisible = (bool)newValue; if ((bool)newValue) { if (string.IsNullOrEmpty(thisctrl.phone.Text)) { thisctrl.required.Text = thisctrl.RequiredMessage; } else { thisctrl.required.Text = null; } } else { thisctrl.required.Text = null; } } }