Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
        private static void OnFilterChangeCallbackChanged(BindableObject bindable, object oldValue, object newValue)
        {
            ESISearch thisctrl = (ESISearch)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                //thisctrl.FilterChangeCallback = (Action<string>)newValue;
            }
        }
Beispiel #3
0
        private static void OnSearchTitleChanged(BindableObject bindable, object oldValue, object newValue)
        {
            ESISearch thisctrl = (ESISearch)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                //thisctrl.fieldLabel.Text = (string)newValue;
            }
        }
Beispiel #4
0
        private static void OnShowRequiredFlagChanged(BindableObject bindable, object oldValue, object newValue)
        {
            ESISearch thisctrl = (ESISearch)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.SetRequiredMessage();
            }
        }
Beispiel #5
0
        private static void OnIsSingleSelectChanged(BindableObject bindable, object oldValue, object newValue)
        {
            ESISearch thisctrl = (ESISearch)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                //thisctrl.IsSingleSelect = (bool)newValue;
            }
        }
Beispiel #6
0
        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);
            }
        }