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); }
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(); }