diff --git a/src/MergedWinMD/Directory.Build.props b/src/MergedWinMD/Directory.Build.props index 1021695240..fd7ced7281 100644 --- a/src/MergedWinMD/Directory.Build.props +++ b/src/MergedWinMD/Directory.Build.props @@ -7,6 +7,15 @@ + + + $(MSBuildThisFileDirectory)..\packages + + + true + + false diff --git a/src/Packages.props b/src/Packages.props index 657871cf52..5dffcba1b7 100644 --- a/src/Packages.props +++ b/src/Packages.props @@ -26,7 +26,7 @@ - + diff --git a/src/controls/dev/CommonStyles/Hyperlink_themeresources.xaml b/src/controls/dev/CommonStyles/Hyperlink_themeresources.xaml index 801fc09762..9755333d16 100644 --- a/src/controls/dev/CommonStyles/Hyperlink_themeresources.xaml +++ b/src/controls/dev/CommonStyles/Hyperlink_themeresources.xaml @@ -7,9 +7,9 @@ - - - + + + @@ -18,4 +18,4 @@ False - \ No newline at end of file + diff --git a/src/controls/dev/CommonStyles/TestUI/FlatItemsControlPage.xaml.cs b/src/controls/dev/CommonStyles/TestUI/FlatItemsControlPage.xaml.cs index a221385c08..765139a972 100644 --- a/src/controls/dev/CommonStyles/TestUI/FlatItemsControlPage.xaml.cs +++ b/src/controls/dev/CommonStyles/TestUI/FlatItemsControlPage.xaml.cs @@ -18,7 +18,7 @@ namespace MUXControlsTestApp { public sealed partial class FlatItemsControlPage : TestPage { - private ObservableCollection _colRecipes = null; + private ObservableCollection _colEntities = null; private ItemsPanelTemplate _modernPanelTemplate = null; private DataTemplate[] _itemTemplates = new DataTemplate[3]; @@ -31,13 +31,13 @@ public FlatItemsControlPage() private void FlatItemsControlPage_Loaded(object sender, RoutedEventArgs e) { - _colRecipes = new ObservableCollection(); + _colEntities = new ObservableCollection(); for (int itemIndex = 0; itemIndex < 250; itemIndex++) { BitmapImage bitmapImage = GetBitmapImage(itemIndex % 126 + 1); - _colRecipes.Add(new Recipe() + _colEntities.Add(new Entity() { BitmapImage = bitmapImage, Id = itemIndex @@ -50,7 +50,7 @@ private void FlatItemsControlPage_Loaded(object sender, RoutedEventArgs e) UpdateItemsControlXYFocusKeyboardNavigation(); UpdateItemsPanelType(); - itemsControl.ItemsSource = _colRecipes; + itemsControl.ItemsSource = _colEntities; } private void UpdateItemsPanelType() @@ -260,9 +260,9 @@ private void UpdateDataSourceItemCount() { txtDataSourceItemCount.Text = "0"; } - else if (itemsControl.ItemsSource == _colRecipes) + else if (itemsControl.ItemsSource == _colEntities) { - txtDataSourceItemCount.Text = _colRecipes.Count.ToString(); + txtDataSourceItemCount.Text = _colEntities.Count.ToString(); } } } @@ -283,17 +283,17 @@ private void DataSourceAddItem() { if (itemsControl != null && itemsControl.ItemsSource != null) { - if (itemsControl.ItemsSource == _colRecipes) + if (itemsControl.ItemsSource == _colEntities) { - BitmapImage bitmapImage = GetBitmapImage(_colRecipes.Count % 126 + 1); + BitmapImage bitmapImage = GetBitmapImage(_colEntities.Count % 126 + 1); - var recipe = new Recipe() + var entity = new Entity() { BitmapImage = bitmapImage, - Id = _colRecipes.Count + Id = _colEntities.Count }; - _colRecipes.Add(recipe); + _colEntities.Add(entity); } } } @@ -310,17 +310,17 @@ private void DataSourceInsertItem(int newItemIndex) { if (itemsControl != null && itemsControl.ItemsSource != null) { - if (itemsControl.ItemsSource == _colRecipes) + if (itemsControl.ItemsSource == _colEntities) { - BitmapImage bitmapImage = GetBitmapImage(_colRecipes.Count % 126 + 1); + BitmapImage bitmapImage = GetBitmapImage(_colEntities.Count % 126 + 1); - var recipe = new Recipe() + var entity = new Entity() { BitmapImage = bitmapImage, - Id = _colRecipes.Count + Id = _colEntities.Count }; - _colRecipes.Insert(newItemIndex, recipe); + _colEntities.Insert(newItemIndex, entity); } } } @@ -337,9 +337,9 @@ private void DataSourceRemoveAllItems() { if (itemsControl != null && itemsControl.ItemsSource != null) { - if (itemsControl.ItemsSource == _colRecipes) + if (itemsControl.ItemsSource == _colEntities) { - _colRecipes.Clear(); + _colEntities.Clear(); } } } @@ -356,9 +356,9 @@ private void DataSourceRemoveItem(int oldItemIndex) { if (itemsControl != null && itemsControl.ItemsSource != null) { - if (itemsControl.ItemsSource == _colRecipes) + if (itemsControl.ItemsSource == _colEntities) { - _colRecipes.RemoveAt(oldItemIndex); + _colEntities.RemoveAt(oldItemIndex); } } } @@ -375,17 +375,17 @@ private void DataSourceReplaceItem(int itemIndex) { if (itemsControl != null && itemsControl.ItemsSource != null) { - if (itemsControl.ItemsSource == _colRecipes) + if (itemsControl.ItemsSource == _colEntities) { - BitmapImage bitmapImage = GetBitmapImage(_colRecipes.Count % 126 + 1); + BitmapImage bitmapImage = GetBitmapImage(_colEntities.Count % 126 + 1); - var recipe = new Recipe() + var entity = new Entity() { BitmapImage = bitmapImage, - Id = _colRecipes.Count + Id = _colEntities.Count }; - _colRecipes[itemIndex] = recipe; + _colEntities[itemIndex] = entity; } } } @@ -595,7 +595,7 @@ private void BtnSetItemsPanelOrientation_Click(object sender, RoutedEventArgs e) } } - itemsControl.ItemsSource = _colRecipes; + itemsControl.ItemsSource = _colEntities; } } @@ -659,31 +659,31 @@ private void BtnDataSourceSetItemCount_Click(object sender, RoutedEventArgs e) { int newItemCount = int.Parse(txtDataSourceItemCount.Text); - if (itemsControl.ItemsSource == _colRecipes) + if (itemsControl.ItemsSource == _colEntities) { - if (_colRecipes.Count < newItemCount) + if (_colEntities.Count < newItemCount) { - var colRecipesEnd = new List(); + var colEntitiesEnd = new List(); - for (int itemIndex = 0; itemIndex < newItemCount - _colRecipes.Count; itemIndex++) + for (int itemIndex = 0; itemIndex < newItemCount - _colEntities.Count; itemIndex++) { BitmapImage bitmapImage = GetBitmapImage(itemIndex % 126 + 1); - colRecipesEnd.Add(new Recipe() + colEntitiesEnd.Add(new Entity() { BitmapImage = bitmapImage, Id = itemIndex }); } - _colRecipes = new ObservableCollection(_colRecipes.Concat(colRecipesEnd)); + _colEntities = new ObservableCollection(_colEntities.Concat(colEntitiesEnd)); } - else if (_colRecipes.Count > newItemCount) + else if (_colEntities.Count > newItemCount) { - _colRecipes = new ObservableCollection(_colRecipes.Take(newItemCount)); + _colEntities = new ObservableCollection(_colEntities.Take(newItemCount)); } - itemsControl.ItemsSource = _colRecipes; + itemsControl.ItemsSource = _colEntities; } } } diff --git a/src/controls/dev/CommonStyles/TestUI/ListViewBasePage.xaml b/src/controls/dev/CommonStyles/TestUI/ListViewBasePage.xaml index e82cd92405..ee6246fff6 100644 --- a/src/controls/dev/CommonStyles/TestUI/ListViewBasePage.xaml +++ b/src/controls/dev/CommonStyles/TestUI/ListViewBasePage.xaml @@ -234,7 +234,7 @@ @@ -244,14 +244,21 @@ + diff --git a/src/controls/dev/ItemsView/TestUI/ItemsViewPage.xaml.cs b/src/controls/dev/ItemsView/TestUI/ItemsViewPage.xaml.cs index 9509ee1f60..3732cd8151 100644 --- a/src/controls/dev/ItemsView/TestUI/ItemsViewPage.xaml.cs +++ b/src/controls/dev/ItemsView/TestUI/ItemsViewPage.xaml.cs @@ -25,6 +25,7 @@ public ItemsViewPage() navigateToIntegration.Click += delegate { Frame.NavigateWithoutAnimation(typeof(ItemsViewIntegrationPage), 0); }; navigateToBlank.Click += delegate { Frame.NavigateWithoutAnimation(typeof(ItemsViewBlankPage), 0); }; navigateToTransitionProvider.Click += delegate { Frame.NavigateWithoutAnimation(typeof(ItemsViewTransitionPage), 0); }; + navigateToPictureLibrary.Click += delegate { Frame.NavigateWithoutAnimation(typeof(ItemsViewPictureLibraryPage), 0); }; } private void CmbItemsViewOutputDebugStringLevel_SelectionChanged(object sender, SelectionChangedEventArgs e) diff --git a/src/controls/dev/ItemsView/TestUI/ItemsViewPictureLibraryPage.xaml b/src/controls/dev/ItemsView/TestUI/ItemsViewPictureLibraryPage.xaml new file mode 100644 index 0000000000..a15acc3b00 --- /dev/null +++ b/src/controls/dev/ItemsView/TestUI/ItemsViewPictureLibraryPage.xaml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +