Exemplo n.º 1
0
        private void LoadContent()
        {
            if (!ApplyedFilterValues.IsNullOrEmpty())
            {
                var selectedValue = Values.FirstOrDefault(x => ApplyedFilterValues.Any(y => y.Id == x.Id));
                if (selectedValue != null)
                {
                    SelectedItemIndex = Values.IndexOf(selectedValue);
                    ValueName         = selectedValue.ValueName;
                }
            }

            Items = new List <PickerCollectionItemVM>(Values.Select(x => SetupItem(x)));

            BuildSelectedValue(SelectedItem);
        }
Exemplo n.º 2
0
 protected virtual void LoadContent()
 {
     Items = new ObservableCollection <CollectionItemVM>(Values
                                                         .Select(x => SetupItem(this.DataType, x, ApplyedFilterValues != null && ApplyedFilterValues.Any(y => y.Id == x.Id)))
                                                         );
     BuildSelectedValue();
 }