Exemple #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;
            }
        }
Exemple #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;
            }
        }
Exemple #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;
            }
        }
Exemple #4
0
        private static void OnShowRequiredFlagChanged(BindableObject bindable, object oldValue, object newValue)
        {
            ESISearch thisctrl = (ESISearch)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                thisctrl.SetRequiredMessage();
            }
        }
Exemple #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;
            }
        }
Exemple #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);
            }
        }