private static void OnSourceListChanged(BindableObject bindable, object oldValue, object newValue) { ESISearch thisctrl = (ESISearch)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.SearchableList.ItemsSource = (ObservableCollection <SearchItem>)newValue; } }
private static void OnFilterChangeCallbackChanged(BindableObject bindable, object oldValue, object newValue) { ESISearch thisctrl = (ESISearch)bindable; if (thisctrl != null && oldValue != newValue) { //thisctrl.FilterChangeCallback = (Action<string>)newValue; } }
private static void OnSearchTitleChanged(BindableObject bindable, object oldValue, object newValue) { ESISearch thisctrl = (ESISearch)bindable; if (thisctrl != null && oldValue != newValue) { //thisctrl.fieldLabel.Text = (string)newValue; } }
private static void OnShowRequiredFlagChanged(BindableObject bindable, object oldValue, object newValue) { ESISearch thisctrl = (ESISearch)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.SetRequiredMessage(); } }
private static void OnIsSingleSelectChanged(BindableObject bindable, object oldValue, object newValue) { ESISearch thisctrl = (ESISearch)bindable; if (thisctrl != null && oldValue != newValue) { //thisctrl.IsSingleSelect = (bool)newValue; } }
private static void OnCanEditChanged(BindableObject bindable, object oldValue, object newValue) { ESISearch thisctrl = (ESISearch)bindable; if (thisctrl != null && oldValue != newValue) { thisctrl.searchBar.IsVisible = (bool)newValue; thisctrl.pickList.IsVisible = (bool)newValue; thisctrl.SetSelectedItemsHeightRequest(); thisctrl.SetSelectedCanEdit((bool)newValue); } }