diff --git a/Chapter02/MyMediaCollection/MainWindow.xaml b/Chapter02/MyMediaCollection/MainWindow.xaml
index ccc3f41..41478b7 100644
--- a/Chapter02/MyMediaCollection/MainWindow.xaml
+++ b/Chapter02/MyMediaCollection/MainWindow.xaml
@@ -27,7 +27,7 @@
-
+
diff --git a/Chapter03/Start/Ch3-MyMediaCollection.sln b/Chapter03/Start/Ch3-MyMediaCollection.sln
new file mode 100644
index 0000000..d74113c
--- /dev/null
+++ b/Chapter03/Start/Ch3-MyMediaCollection.sln
@@ -0,0 +1,43 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.5.33530.505
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyMediaCollection", "MyMediaCollection\MyMediaCollection.csproj", "{972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|ARM64 = Debug|ARM64
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|ARM64 = Release|ARM64
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Debug|ARM64.ActiveCfg = Debug|ARM64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Debug|ARM64.Build.0 = Debug|ARM64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Debug|ARM64.Deploy.0 = Debug|ARM64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Debug|x64.ActiveCfg = Debug|x64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Debug|x64.Build.0 = Debug|x64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Debug|x64.Deploy.0 = Debug|x64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Debug|x86.ActiveCfg = Debug|x86
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Debug|x86.Build.0 = Debug|x86
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Debug|x86.Deploy.0 = Debug|x86
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Release|ARM64.ActiveCfg = Release|ARM64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Release|ARM64.Build.0 = Release|ARM64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Release|ARM64.Deploy.0 = Release|ARM64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Release|x64.ActiveCfg = Release|x64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Release|x64.Build.0 = Release|x64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Release|x64.Deploy.0 = Release|x64
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Release|x86.ActiveCfg = Release|x86
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Release|x86.Build.0 = Release|x86
+ {972D5C0D-86E6-4A2F-A6FD-8D4FE3380707}.Release|x86.Deploy.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {C9277197-C949-4948-80CD-0A685EE6DCBB}
+ EndGlobalSection
+EndGlobal
diff --git a/Chapter03/Start/MyMediaCollection/App.xaml b/Chapter03/Start/MyMediaCollection/App.xaml
new file mode 100644
index 0000000..eeb9e6e
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/App.xaml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Chapter03/Start/MyMediaCollection/App.xaml.cs b/Chapter03/Start/MyMediaCollection/App.xaml.cs
new file mode 100644
index 0000000..ea1e35b
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/App.xaml.cs
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation and Contributors.
+// Licensed under the MIT License.
+
+using Microsoft.UI.Xaml;
+using Microsoft.UI.Xaml.Controls;
+using Microsoft.UI.Xaml.Controls.Primitives;
+using Microsoft.UI.Xaml.Data;
+using Microsoft.UI.Xaml.Input;
+using Microsoft.UI.Xaml.Media;
+using Microsoft.UI.Xaml.Navigation;
+using Microsoft.UI.Xaml.Shapes;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Runtime.InteropServices.WindowsRuntime;
+using Windows.ApplicationModel;
+using Windows.ApplicationModel.Activation;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+
+// To learn more about WinUI, the WinUI project structure,
+// and more about our project templates, see: http://aka.ms/winui-project-info.
+
+namespace MyMediaCollection
+{
+ ///
+ /// Provides application-specific behavior to supplement the default Application class.
+ ///
+ public partial class App : Application
+ {
+ ///
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ ///
+ public App()
+ {
+ this.InitializeComponent();
+ }
+
+ ///
+ /// Invoked when the application is launched.
+ ///
+ /// Details about the launch request and process.
+ protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
+ {
+ m_window = new MainWindow();
+ m_window.Activate();
+ }
+
+ private Window m_window;
+ }
+}
diff --git a/Chapter03/Start/MyMediaCollection/Assets/LockScreenLogo.scale-200.png b/Chapter03/Start/MyMediaCollection/Assets/LockScreenLogo.scale-200.png
new file mode 100644
index 0000000..7440f0d
Binary files /dev/null and b/Chapter03/Start/MyMediaCollection/Assets/LockScreenLogo.scale-200.png differ
diff --git a/Chapter03/Start/MyMediaCollection/Assets/SplashScreen.scale-200.png b/Chapter03/Start/MyMediaCollection/Assets/SplashScreen.scale-200.png
new file mode 100644
index 0000000..32f486a
Binary files /dev/null and b/Chapter03/Start/MyMediaCollection/Assets/SplashScreen.scale-200.png differ
diff --git a/Chapter03/Start/MyMediaCollection/Assets/Square150x150Logo.scale-200.png b/Chapter03/Start/MyMediaCollection/Assets/Square150x150Logo.scale-200.png
new file mode 100644
index 0000000..53ee377
Binary files /dev/null and b/Chapter03/Start/MyMediaCollection/Assets/Square150x150Logo.scale-200.png differ
diff --git a/Chapter03/Start/MyMediaCollection/Assets/Square44x44Logo.scale-200.png b/Chapter03/Start/MyMediaCollection/Assets/Square44x44Logo.scale-200.png
new file mode 100644
index 0000000..f713bba
Binary files /dev/null and b/Chapter03/Start/MyMediaCollection/Assets/Square44x44Logo.scale-200.png differ
diff --git a/Chapter03/Start/MyMediaCollection/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/Chapter03/Start/MyMediaCollection/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
new file mode 100644
index 0000000..dc9f5be
Binary files /dev/null and b/Chapter03/Start/MyMediaCollection/Assets/Square44x44Logo.targetsize-24_altform-unplated.png differ
diff --git a/Chapter03/Start/MyMediaCollection/Assets/StoreLogo.png b/Chapter03/Start/MyMediaCollection/Assets/StoreLogo.png
new file mode 100644
index 0000000..a4586f2
Binary files /dev/null and b/Chapter03/Start/MyMediaCollection/Assets/StoreLogo.png differ
diff --git a/Chapter03/Start/MyMediaCollection/Assets/Wide310x150Logo.scale-200.png b/Chapter03/Start/MyMediaCollection/Assets/Wide310x150Logo.scale-200.png
new file mode 100644
index 0000000..8b4a5d0
Binary files /dev/null and b/Chapter03/Start/MyMediaCollection/Assets/Wide310x150Logo.scale-200.png differ
diff --git a/Chapter03/Start/MyMediaCollection/Enums/ItemType.cs b/Chapter03/Start/MyMediaCollection/Enums/ItemType.cs
new file mode 100644
index 0000000..2e50873
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/Enums/ItemType.cs
@@ -0,0 +1,9 @@
+namespace MyMediaCollection.Enums
+{
+ public enum ItemType
+ {
+ Music,
+ Video,
+ Book
+ }
+}
\ No newline at end of file
diff --git a/Chapter03/Start/MyMediaCollection/Enums/LocationType.cs b/Chapter03/Start/MyMediaCollection/Enums/LocationType.cs
new file mode 100644
index 0000000..a8d19aa
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/Enums/LocationType.cs
@@ -0,0 +1,8 @@
+namespace MyMediaCollection.Enums
+{
+ public enum LocationType
+ {
+ InCollection,
+ Loaned
+ }
+}
\ No newline at end of file
diff --git a/Chapter03/Start/MyMediaCollection/MainWindow.xaml b/Chapter03/Start/MyMediaCollection/MainWindow.xaml
new file mode 100644
index 0000000..41478b7
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/MainWindow.xaml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Chapter03/Start/MyMediaCollection/MainWindow.xaml.cs b/Chapter03/Start/MyMediaCollection/MainWindow.xaml.cs
new file mode 100644
index 0000000..5490815
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/MainWindow.xaml.cs
@@ -0,0 +1,129 @@
+using Microsoft.UI.Xaml;
+using Microsoft.UI.Xaml.Controls;
+using MyMediaCollection.Enums;
+using MyMediaCollection.Model;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace MyMediaCollection
+{
+ ///
+ /// An empty window that can be used on its own or navigated to within a Frame.
+ ///
+ public sealed partial class MainWindow : Window
+ {
+ private bool _isLoaded;
+ private IList _items { get; set; }
+ private IList _mediums { get; set; }
+ private IList _allItems { get; set; }
+
+ public MainWindow()
+ {
+ this.InitializeComponent();
+ ItemList.Loaded += ItemList_Loaded;
+ ItemFilter.Loaded += ItemFilter_Loaded;
+ }
+
+ private void ItemFilter_Loaded(object sender, RoutedEventArgs e)
+ {
+ var filterCombo = (ComboBox)sender;
+ PopulateData();
+ filterCombo.ItemsSource = _mediums;
+ filterCombo.SelectedIndex = 0;
+ ItemFilter.SelectionChanged += ItemFilter_SelectionChanged;
+ }
+
+ private void ItemFilter_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ var updatedItems = (from item in _allItems
+ where string.IsNullOrWhiteSpace(ItemFilter.SelectedValue.ToString())
+ || ItemFilter.SelectedValue.ToString() == "All"
+ || ItemFilter.SelectedValue.ToString() == item.MediaType.ToString()
+ select item).ToList();
+ ItemList.ItemsSource = updatedItems;
+ }
+
+ private void ItemList_Loaded(object sender, RoutedEventArgs e)
+ {
+ var listView = (ListView)sender;
+ PopulateData();
+ listView.ItemsSource = _items;
+ }
+
+ private void PopulateData()
+ {
+ if (_isLoaded) return;
+
+ _isLoaded = true;
+
+ var cd = new MediaItem
+ {
+ Id = 1,
+ Name = "Classical Favorites",
+ MediaType = Enums.ItemType.Music,
+ MediumInfo = new Medium
+ {
+ Id = 1,
+ MediaType = ItemType.Music,
+ Name = "CD"
+ }
+ };
+ var book = new MediaItem
+ {
+ Id = 2,
+ Name = "Classic Fairy Tales",
+ MediaType = ItemType.Book,
+ MediumInfo = new Medium
+ {
+ Id = 2,
+ MediaType = ItemType.Book,
+ Name = "Book"
+ }
+ };
+ var bluRay = new MediaItem
+ {
+ Id = 3,
+ Name = "The Mummy",
+ MediaType = ItemType.Video,
+ MediumInfo = new Medium
+ {
+ Id = 3,
+ MediaType = ItemType.Video,
+ Name = "Blu Ray"
+ }
+ };
+ _items = new List
+ {
+ cd,
+ book,
+ bluRay
+ };
+ _allItems = new List
+ {
+ cd,
+ book,
+ bluRay
+ };
+ _mediums = new List
+ {
+ "All",
+ nameof(ItemType.Book),
+ nameof(ItemType.Music),
+ nameof(ItemType.Video)
+ };
+ }
+
+ private async void AddButton_Click(object sender, RoutedEventArgs e)
+ {
+ var dialog = new ContentDialog
+ {
+ Title = "My Media Collection",
+ Content = "Adding items to the collection is not yet supported.",
+ CloseButtonText = "OK",
+ XamlRoot = Content.XamlRoot
+ };
+ await dialog.ShowAsync();
+ }
+ }
+}
\ No newline at end of file
diff --git a/Chapter03/Start/MyMediaCollection/Model/MediaItem.cs b/Chapter03/Start/MyMediaCollection/Model/MediaItem.cs
new file mode 100644
index 0000000..5ab161a
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/Model/MediaItem.cs
@@ -0,0 +1,13 @@
+using MyMediaCollection.Enums;
+
+namespace MyMediaCollection.Model
+{
+ public class MediaItem
+ {
+ public int Id { get; set; }
+ public string Name { get; set; }
+ public ItemType MediaType { get; set; }
+ public Medium MediumInfo { get; set; }
+ public LocationType Location { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Chapter03/Start/MyMediaCollection/Model/Medium.cs b/Chapter03/Start/MyMediaCollection/Model/Medium.cs
new file mode 100644
index 0000000..f22fac4
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/Model/Medium.cs
@@ -0,0 +1,11 @@
+using MyMediaCollection.Enums;
+
+namespace MyMediaCollection.Model
+{
+ public class Medium
+ {
+ public int Id { get; set; }
+ public string Name { get; set; }
+ public ItemType MediaType { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Chapter03/Start/MyMediaCollection/MyMediaCollection.csproj b/Chapter03/Start/MyMediaCollection/MyMediaCollection.csproj
new file mode 100644
index 0000000..4ca6a19
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/MyMediaCollection.csproj
@@ -0,0 +1,48 @@
+
+
+ WinExe
+ net6.0-windows10.0.19041.0
+ 10.0.17763.0
+ MyMediaCollection
+ app.manifest
+ x86;x64;ARM64
+ win10-x86;win10-x64;win10-arm64
+ win10-$(Platform).pubxml
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
diff --git a/Chapter03/Start/MyMediaCollection/Package.appxmanifest b/Chapter03/Start/MyMediaCollection/Package.appxmanifest
new file mode 100644
index 0000000..11029a8
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/Package.appxmanifest
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+ MyMediaCollection
+ alash
+ Assets\StoreLogo.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Chapter03/Start/MyMediaCollection/Properties/launchSettings.json b/Chapter03/Start/MyMediaCollection/Properties/launchSettings.json
new file mode 100644
index 0000000..b7ae329
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/Properties/launchSettings.json
@@ -0,0 +1,10 @@
+{
+ "profiles": {
+ "MyMediaCollection (Package)": {
+ "commandName": "MsixPackage"
+ },
+ "MyMediaCollection (Unpackaged)": {
+ "commandName": "Project"
+ }
+ }
+}
\ No newline at end of file
diff --git a/Chapter03/Start/MyMediaCollection/app.manifest b/Chapter03/Start/MyMediaCollection/app.manifest
new file mode 100644
index 0000000..abc9f68
--- /dev/null
+++ b/Chapter03/Start/MyMediaCollection/app.manifest
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
\ No newline at end of file