private CollectionView GetList() { var collectionView = new CollectionView { ItemTemplate = GetDataTemplate() }; collectionView.Bind(ItemsView.ItemsSourceProperty, "Pokemon"); return(collectionView); }
private CollectionView GetList() { collectionView = new CollectionView { ItemTemplate = GetDataTemplate(), SelectionMode = SelectionMode.Single }; collectionView.Bind(ItemsView.ItemsSourceProperty, "Pokemon"); return(collectionView); }