diff --git a/Chapter12/Complete/BlazorTasksHost/App.xaml b/Chapter12/Complete/BlazorTasksHost/App.xaml new file mode 100644 index 0000000..91413cb --- /dev/null +++ b/Chapter12/Complete/BlazorTasksHost/App.xaml @@ -0,0 +1,16 @@ + + + + + + + + + + + + diff --git a/Chapter12/Complete/BlazorTasksHost/App.xaml.cs b/Chapter12/Complete/BlazorTasksHost/App.xaml.cs new file mode 100644 index 0000000..75d21a6 --- /dev/null +++ b/Chapter12/Complete/BlazorTasksHost/App.xaml.cs @@ -0,0 +1,50 @@ +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 BlazorTasksHost +{ + /// + /// 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/Chapter12/Complete/BlazorTasksHost/Assets/LockScreenLogo.scale-200.png b/Chapter12/Complete/BlazorTasksHost/Assets/LockScreenLogo.scale-200.png new file mode 100644 index 0000000..7440f0d Binary files /dev/null and b/Chapter12/Complete/BlazorTasksHost/Assets/LockScreenLogo.scale-200.png differ diff --git a/Chapter12/Complete/BlazorTasksHost/Assets/SplashScreen.scale-200.png b/Chapter12/Complete/BlazorTasksHost/Assets/SplashScreen.scale-200.png new file mode 100644 index 0000000..32f486a Binary files /dev/null and b/Chapter12/Complete/BlazorTasksHost/Assets/SplashScreen.scale-200.png differ diff --git a/Chapter12/Complete/BlazorTasksHost/Assets/Square150x150Logo.scale-200.png b/Chapter12/Complete/BlazorTasksHost/Assets/Square150x150Logo.scale-200.png new file mode 100644 index 0000000..53ee377 Binary files /dev/null and b/Chapter12/Complete/BlazorTasksHost/Assets/Square150x150Logo.scale-200.png differ diff --git a/Chapter12/Complete/BlazorTasksHost/Assets/Square44x44Logo.scale-200.png b/Chapter12/Complete/BlazorTasksHost/Assets/Square44x44Logo.scale-200.png new file mode 100644 index 0000000..f713bba Binary files /dev/null and b/Chapter12/Complete/BlazorTasksHost/Assets/Square44x44Logo.scale-200.png differ diff --git a/Chapter12/Complete/BlazorTasksHost/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/Chapter12/Complete/BlazorTasksHost/Assets/Square44x44Logo.targetsize-24_altform-unplated.png new file mode 100644 index 0000000..dc9f5be Binary files /dev/null and b/Chapter12/Complete/BlazorTasksHost/Assets/Square44x44Logo.targetsize-24_altform-unplated.png differ diff --git a/Chapter12/Complete/BlazorTasksHost/Assets/StoreLogo.png b/Chapter12/Complete/BlazorTasksHost/Assets/StoreLogo.png new file mode 100644 index 0000000..a4586f2 Binary files /dev/null and b/Chapter12/Complete/BlazorTasksHost/Assets/StoreLogo.png differ diff --git a/Chapter12/Complete/BlazorTasksHost/Assets/Wide310x150Logo.scale-200.png b/Chapter12/Complete/BlazorTasksHost/Assets/Wide310x150Logo.scale-200.png new file mode 100644 index 0000000..8b4a5d0 Binary files /dev/null and b/Chapter12/Complete/BlazorTasksHost/Assets/Wide310x150Logo.scale-200.png differ diff --git a/Chapter12/Complete/BlazorTasksHost/BlazorTasksHost.csproj b/Chapter12/Complete/BlazorTasksHost/BlazorTasksHost.csproj new file mode 100644 index 0000000..6048214 --- /dev/null +++ b/Chapter12/Complete/BlazorTasksHost/BlazorTasksHost.csproj @@ -0,0 +1,48 @@ + + + WinExe + net6.0-windows10.0.19041.0 + 10.0.17763.0 + BlazorTasksHost + app.manifest + x86;x64;ARM64 + win10-x86;win10-x64;win10-arm64 + win10-$(Platform).pubxml + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + true + + diff --git a/Chapter12/Complete/BlazorTasksHost/BlazorTasksHost.sln b/Chapter12/Complete/BlazorTasksHost/BlazorTasksHost.sln new file mode 100644 index 0000000..9a7fa63 --- /dev/null +++ b/Chapter12/Complete/BlazorTasksHost/BlazorTasksHost.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34018.315 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorTasksHost", "BlazorTasksHost.csproj", "{1DBAD00D-0D7D-48E0-898D-D4C142AA431C}" +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 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|ARM64.Build.0 = Debug|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|ARM64.Deploy.0 = Debug|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x64.ActiveCfg = Debug|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x64.Build.0 = Debug|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x64.Deploy.0 = Debug|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x86.ActiveCfg = Debug|x86 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x86.Build.0 = Debug|x86 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x86.Deploy.0 = Debug|x86 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|ARM64.ActiveCfg = Release|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|ARM64.Build.0 = Release|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|ARM64.Deploy.0 = Release|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x64.ActiveCfg = Release|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x64.Build.0 = Release|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x64.Deploy.0 = Release|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x86.ActiveCfg = Release|x86 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x86.Build.0 = Release|x86 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FA07614A-4BD1-4280-97DD-C52D66C110D1} + EndGlobalSection +EndGlobal diff --git a/Chapter12/Complete/BlazorTasksHost/MainWindow.xaml b/Chapter12/Complete/BlazorTasksHost/MainWindow.xaml new file mode 100644 index 0000000..d556d55 --- /dev/null +++ b/Chapter12/Complete/BlazorTasksHost/MainWindow.xaml @@ -0,0 +1,14 @@ + + + + + + + diff --git a/Chapter12/Complete/BlazorTasksHost/MainWindow.xaml.cs b/Chapter12/Complete/BlazorTasksHost/MainWindow.xaml.cs new file mode 100644 index 0000000..46ca216 --- /dev/null +++ b/Chapter12/Complete/BlazorTasksHost/MainWindow.xaml.cs @@ -0,0 +1,15 @@ +using Microsoft.UI.Xaml; + +namespace BlazorTasksHost +{ + /// + /// An empty window that can be used on its own or navigated to within a Frame. + /// + public sealed partial class MainWindow : Window + { + public MainWindow() + { + this.InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/Chapter12/Complete/BlazorTasksHost/Package.appxmanifest b/Chapter12/Complete/BlazorTasksHost/Package.appxmanifest new file mode 100644 index 0000000..c7acd0a --- /dev/null +++ b/Chapter12/Complete/BlazorTasksHost/Package.appxmanifest @@ -0,0 +1,51 @@ + + + + + + + + + + BlazorTasksHost + alash + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Chapter12/Complete/BlazorTasksHost/Properties/launchSettings.json b/Chapter12/Complete/BlazorTasksHost/Properties/launchSettings.json new file mode 100644 index 0000000..5897cbb --- /dev/null +++ b/Chapter12/Complete/BlazorTasksHost/Properties/launchSettings.json @@ -0,0 +1,10 @@ +{ + "profiles": { + "BlazorTasksHost (Package)": { + "commandName": "MsixPackage" + }, + "BlazorTasksHost (Unpackaged)": { + "commandName": "Project" + } + } +} \ No newline at end of file diff --git a/Chapter12/Complete/BlazorTasksHost/app.manifest b/Chapter12/Complete/BlazorTasksHost/app.manifest new file mode 100644 index 0000000..0a1fb01 --- /dev/null +++ b/Chapter12/Complete/BlazorTasksHost/app.manifest @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + PerMonitorV2 + + + \ No newline at end of file diff --git a/Chapter12/Start/BlazorTasksHost/App.xaml b/Chapter12/Start/BlazorTasksHost/App.xaml new file mode 100644 index 0000000..91413cb --- /dev/null +++ b/Chapter12/Start/BlazorTasksHost/App.xaml @@ -0,0 +1,16 @@ + + + + + + + + + + + + diff --git a/Chapter12/Start/BlazorTasksHost/App.xaml.cs b/Chapter12/Start/BlazorTasksHost/App.xaml.cs new file mode 100644 index 0000000..75d21a6 --- /dev/null +++ b/Chapter12/Start/BlazorTasksHost/App.xaml.cs @@ -0,0 +1,50 @@ +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 BlazorTasksHost +{ + /// + /// 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/Chapter12/Start/BlazorTasksHost/Assets/LockScreenLogo.scale-200.png b/Chapter12/Start/BlazorTasksHost/Assets/LockScreenLogo.scale-200.png new file mode 100644 index 0000000..7440f0d Binary files /dev/null and b/Chapter12/Start/BlazorTasksHost/Assets/LockScreenLogo.scale-200.png differ diff --git a/Chapter12/Start/BlazorTasksHost/Assets/SplashScreen.scale-200.png b/Chapter12/Start/BlazorTasksHost/Assets/SplashScreen.scale-200.png new file mode 100644 index 0000000..32f486a Binary files /dev/null and b/Chapter12/Start/BlazorTasksHost/Assets/SplashScreen.scale-200.png differ diff --git a/Chapter12/Start/BlazorTasksHost/Assets/Square150x150Logo.scale-200.png b/Chapter12/Start/BlazorTasksHost/Assets/Square150x150Logo.scale-200.png new file mode 100644 index 0000000..53ee377 Binary files /dev/null and b/Chapter12/Start/BlazorTasksHost/Assets/Square150x150Logo.scale-200.png differ diff --git a/Chapter12/Start/BlazorTasksHost/Assets/Square44x44Logo.scale-200.png b/Chapter12/Start/BlazorTasksHost/Assets/Square44x44Logo.scale-200.png new file mode 100644 index 0000000..f713bba Binary files /dev/null and b/Chapter12/Start/BlazorTasksHost/Assets/Square44x44Logo.scale-200.png differ diff --git a/Chapter12/Start/BlazorTasksHost/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/Chapter12/Start/BlazorTasksHost/Assets/Square44x44Logo.targetsize-24_altform-unplated.png new file mode 100644 index 0000000..dc9f5be Binary files /dev/null and b/Chapter12/Start/BlazorTasksHost/Assets/Square44x44Logo.targetsize-24_altform-unplated.png differ diff --git a/Chapter12/Start/BlazorTasksHost/Assets/StoreLogo.png b/Chapter12/Start/BlazorTasksHost/Assets/StoreLogo.png new file mode 100644 index 0000000..a4586f2 Binary files /dev/null and b/Chapter12/Start/BlazorTasksHost/Assets/StoreLogo.png differ diff --git a/Chapter12/Start/BlazorTasksHost/Assets/Wide310x150Logo.scale-200.png b/Chapter12/Start/BlazorTasksHost/Assets/Wide310x150Logo.scale-200.png new file mode 100644 index 0000000..8b4a5d0 Binary files /dev/null and b/Chapter12/Start/BlazorTasksHost/Assets/Wide310x150Logo.scale-200.png differ diff --git a/Chapter12/Start/BlazorTasksHost/BlazorTasksHost.csproj b/Chapter12/Start/BlazorTasksHost/BlazorTasksHost.csproj new file mode 100644 index 0000000..6048214 --- /dev/null +++ b/Chapter12/Start/BlazorTasksHost/BlazorTasksHost.csproj @@ -0,0 +1,48 @@ + + + WinExe + net6.0-windows10.0.19041.0 + 10.0.17763.0 + BlazorTasksHost + app.manifest + x86;x64;ARM64 + win10-x86;win10-x64;win10-arm64 + win10-$(Platform).pubxml + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + true + + diff --git a/Chapter12/Start/BlazorTasksHost/BlazorTasksHost.sln b/Chapter12/Start/BlazorTasksHost/BlazorTasksHost.sln new file mode 100644 index 0000000..9a7fa63 --- /dev/null +++ b/Chapter12/Start/BlazorTasksHost/BlazorTasksHost.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34018.315 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorTasksHost", "BlazorTasksHost.csproj", "{1DBAD00D-0D7D-48E0-898D-D4C142AA431C}" +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 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|ARM64.Build.0 = Debug|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|ARM64.Deploy.0 = Debug|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x64.ActiveCfg = Debug|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x64.Build.0 = Debug|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x64.Deploy.0 = Debug|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x86.ActiveCfg = Debug|x86 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x86.Build.0 = Debug|x86 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Debug|x86.Deploy.0 = Debug|x86 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|ARM64.ActiveCfg = Release|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|ARM64.Build.0 = Release|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|ARM64.Deploy.0 = Release|ARM64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x64.ActiveCfg = Release|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x64.Build.0 = Release|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x64.Deploy.0 = Release|x64 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x86.ActiveCfg = Release|x86 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x86.Build.0 = Release|x86 + {1DBAD00D-0D7D-48E0-898D-D4C142AA431C}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FA07614A-4BD1-4280-97DD-C52D66C110D1} + EndGlobalSection +EndGlobal diff --git a/Chapter12/Start/BlazorTasksHost/MainWindow.xaml b/Chapter12/Start/BlazorTasksHost/MainWindow.xaml new file mode 100644 index 0000000..4e3e2d6 --- /dev/null +++ b/Chapter12/Start/BlazorTasksHost/MainWindow.xaml @@ -0,0 +1,14 @@ + + + + + + + diff --git a/Chapter12/Start/BlazorTasksHost/MainWindow.xaml.cs b/Chapter12/Start/BlazorTasksHost/MainWindow.xaml.cs new file mode 100644 index 0000000..525aca6 --- /dev/null +++ b/Chapter12/Start/BlazorTasksHost/MainWindow.xaml.cs @@ -0,0 +1,36 @@ +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 System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +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 BlazorTasksHost +{ + /// + /// An empty window that can be used on its own or navigated to within a Frame. + /// + public sealed partial class MainWindow : Window + { + public MainWindow() + { + this.InitializeComponent(); + } + + private void myButton_Click(object sender, RoutedEventArgs e) + { + myButton.Content = "Clicked"; + } + } +} diff --git a/Chapter12/Start/BlazorTasksHost/Package.appxmanifest b/Chapter12/Start/BlazorTasksHost/Package.appxmanifest new file mode 100644 index 0000000..c7acd0a --- /dev/null +++ b/Chapter12/Start/BlazorTasksHost/Package.appxmanifest @@ -0,0 +1,51 @@ + + + + + + + + + + BlazorTasksHost + alash + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Chapter12/Start/BlazorTasksHost/Properties/launchSettings.json b/Chapter12/Start/BlazorTasksHost/Properties/launchSettings.json new file mode 100644 index 0000000..5897cbb --- /dev/null +++ b/Chapter12/Start/BlazorTasksHost/Properties/launchSettings.json @@ -0,0 +1,10 @@ +{ + "profiles": { + "BlazorTasksHost (Package)": { + "commandName": "MsixPackage" + }, + "BlazorTasksHost (Unpackaged)": { + "commandName": "Project" + } + } +} \ No newline at end of file diff --git a/Chapter12/Start/BlazorTasksHost/app.manifest b/Chapter12/Start/BlazorTasksHost/app.manifest new file mode 100644 index 0000000..0a1fb01 --- /dev/null +++ b/Chapter12/Start/BlazorTasksHost/app.manifest @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + PerMonitorV2 + + + \ No newline at end of file