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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +