diff --git a/Server Deployment/DeployWPF/WPFBlazorHybridApp/App.xaml b/Server Deployment/DeployWPF/WPFBlazorHybridApp/App.xaml new file mode 100644 index 0000000..54ba469 --- /dev/null +++ b/Server Deployment/DeployWPF/WPFBlazorHybridApp/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/Server Deployment/DeployWPF/WPFBlazorHybridApp/App.xaml.cs b/Server Deployment/DeployWPF/WPFBlazorHybridApp/App.xaml.cs new file mode 100644 index 0000000..616fdbf --- /dev/null +++ b/Server Deployment/DeployWPF/WPFBlazorHybridApp/App.xaml.cs @@ -0,0 +1,13 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WPFBlazorHybridApp; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} + diff --git a/Server Deployment/DeployWPF/WPFBlazorHybridApp/AssemblyInfo.cs b/Server Deployment/DeployWPF/WPFBlazorHybridApp/AssemblyInfo.cs new file mode 100644 index 0000000..cc29e7f --- /dev/null +++ b/Server Deployment/DeployWPF/WPFBlazorHybridApp/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly:ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/Server Deployment/DeployWPF/WPFBlazorHybridApp/MainWindow.xaml b/Server Deployment/DeployWPF/WPFBlazorHybridApp/MainWindow.xaml new file mode 100644 index 0000000..e8ecb75 --- /dev/null +++ b/Server Deployment/DeployWPF/WPFBlazorHybridApp/MainWindow.xaml @@ -0,0 +1,18 @@ + + + + + + + + + + diff --git a/Server Deployment/DeployWPF/WPFBlazorHybridApp/MainWindow.xaml.cs b/Server Deployment/DeployWPF/WPFBlazorHybridApp/MainWindow.xaml.cs new file mode 100644 index 0000000..bef7596 --- /dev/null +++ b/Server Deployment/DeployWPF/WPFBlazorHybridApp/MainWindow.xaml.cs @@ -0,0 +1,30 @@ +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; +using Microsoft.Extensions.DependencyInjection; +using Syncfusion.Blazor; + +namespace WPFBlazorHybridApp; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + var serviceCollection = new ServiceCollection(); + serviceCollection.AddWpfBlazorWebView(); + serviceCollection.AddMemoryCache(); + serviceCollection.AddSyncfusionBlazor(); + Resources.Add("services", serviceCollection.BuildServiceProvider()); + } +} \ No newline at end of file diff --git a/Server Deployment/DeployWPF/WPFBlazorHybridApp/PDFViewer.razor b/Server Deployment/DeployWPF/WPFBlazorHybridApp/PDFViewer.razor new file mode 100644 index 0000000..3deb92c --- /dev/null +++ b/Server Deployment/DeployWPF/WPFBlazorHybridApp/PDFViewer.razor @@ -0,0 +1,6 @@ +@using Syncfusion.Blazor.SfPdfViewer; + + + \ No newline at end of file diff --git a/Server Deployment/DeployWPF/WPFBlazorHybridApp/WPFBlazorHybridApp.csproj b/Server Deployment/DeployWPF/WPFBlazorHybridApp/WPFBlazorHybridApp.csproj new file mode 100644 index 0000000..6d5179f --- /dev/null +++ b/Server Deployment/DeployWPF/WPFBlazorHybridApp/WPFBlazorHybridApp.csproj @@ -0,0 +1,17 @@ + + + + WinExe + net9.0-windows + enable + enable + true + + + + + + + + + diff --git a/Server Deployment/DeployWPF/WPFBlazorHybridApp/WPFBlazorHybridApp.sln b/Server Deployment/DeployWPF/WPFBlazorHybridApp/WPFBlazorHybridApp.sln new file mode 100644 index 0000000..38c0dd8 --- /dev/null +++ b/Server Deployment/DeployWPF/WPFBlazorHybridApp/WPFBlazorHybridApp.sln @@ -0,0 +1,24 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPFBlazorHybridApp", "WPFBlazorHybridApp.csproj", "{E9C00DD1-CE6A-E6CB-F1A2-800B189AD5F0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E9C00DD1-CE6A-E6CB-F1A2-800B189AD5F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E9C00DD1-CE6A-E6CB-F1A2-800B189AD5F0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E9C00DD1-CE6A-E6CB-F1A2-800B189AD5F0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E9C00DD1-CE6A-E6CB-F1A2-800B189AD5F0}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8199E5BF-B4F3-4C46-AE9C-C724E3F9DD63} + EndGlobalSection +EndGlobal diff --git a/Server Deployment/DeployWPF/WPFBlazorHybridApp/_Import.razor b/Server Deployment/DeployWPF/WPFBlazorHybridApp/_Import.razor new file mode 100644 index 0000000..beab56d --- /dev/null +++ b/Server Deployment/DeployWPF/WPFBlazorHybridApp/_Import.razor @@ -0,0 +1,2 @@ +@using Microsoft.AspNetCore.Components.Web +@using Syncfusion.Blazor.SfPdfViewer \ No newline at end of file diff --git a/Server Deployment/DeployWPF/WPFBlazorHybridApp/wwwroot/index.html b/Server Deployment/DeployWPF/WPFBlazorHybridApp/wwwroot/index.html new file mode 100644 index 0000000..df2c236 --- /dev/null +++ b/Server Deployment/DeployWPF/WPFBlazorHybridApp/wwwroot/index.html @@ -0,0 +1,15 @@ + + + + + + WPF Blazor Hybrid App + + + + +
Loading...
+ + + + \ No newline at end of file diff --git a/Server Deployment/WinForms/WinFormsBlazorHybridApp/Components/PDFViewer.razor b/Server Deployment/WinForms/WinFormsBlazorHybridApp/Components/PDFViewer.razor new file mode 100644 index 0000000..3deb92c --- /dev/null +++ b/Server Deployment/WinForms/WinFormsBlazorHybridApp/Components/PDFViewer.razor @@ -0,0 +1,6 @@ +@using Syncfusion.Blazor.SfPdfViewer; + + + \ No newline at end of file diff --git a/Server Deployment/WinForms/WinFormsBlazorHybridApp/Components/_Import.razor b/Server Deployment/WinForms/WinFormsBlazorHybridApp/Components/_Import.razor new file mode 100644 index 0000000..beab56d --- /dev/null +++ b/Server Deployment/WinForms/WinFormsBlazorHybridApp/Components/_Import.razor @@ -0,0 +1,2 @@ +@using Microsoft.AspNetCore.Components.Web +@using Syncfusion.Blazor.SfPdfViewer \ No newline at end of file diff --git a/Server Deployment/WinForms/WinFormsBlazorHybridApp/Form1.Designer.cs b/Server Deployment/WinForms/WinFormsBlazorHybridApp/Form1.Designer.cs new file mode 100644 index 0000000..2f89297 --- /dev/null +++ b/Server Deployment/WinForms/WinFormsBlazorHybridApp/Form1.Designer.cs @@ -0,0 +1,38 @@ +namespace WinFormsBlazorHybridApp; + +partial class Form1 +{ + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion +} diff --git a/Server Deployment/WinForms/WinFormsBlazorHybridApp/Form1.cs b/Server Deployment/WinForms/WinFormsBlazorHybridApp/Form1.cs new file mode 100644 index 0000000..00c66d1 --- /dev/null +++ b/Server Deployment/WinForms/WinFormsBlazorHybridApp/Form1.cs @@ -0,0 +1,25 @@ +namespace WinFormsBlazorHybridApp; +using Microsoft.AspNetCore.Components.WebView.WindowsForms; +using Microsoft.Extensions.DependencyInjection; +using Syncfusion.Blazor; +using WinFormsBlazorHybridApp.Components; + +public partial class Form1 : Form +{ + public Form1() + { + InitializeComponent(); + var services = new ServiceCollection(); + services.AddWindowsFormsBlazorWebView(); + services.AddMemoryCache(); + services.AddSyncfusionBlazor(); + var blazorWebView = new BlazorWebView() + { + HostPage = "wwwroot\\index.html", + Services = services.BuildServiceProvider(), + Dock = DockStyle.Fill + }; + blazorWebView.RootComponents.Add("#app"); + this.Controls.Add(blazorWebView); + } +} diff --git a/Server Deployment/WinForms/WinFormsBlazorHybridApp/Program.cs b/Server Deployment/WinForms/WinFormsBlazorHybridApp/Program.cs new file mode 100644 index 0000000..23c9289 --- /dev/null +++ b/Server Deployment/WinForms/WinFormsBlazorHybridApp/Program.cs @@ -0,0 +1,16 @@ +namespace WinFormsBlazorHybridApp; + +static class Program +{ + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } +} \ No newline at end of file diff --git a/Server Deployment/WinForms/WinFormsBlazorHybridApp/WinFormsBlazorHybridApp.csproj b/Server Deployment/WinForms/WinFormsBlazorHybridApp/WinFormsBlazorHybridApp.csproj new file mode 100644 index 0000000..d589ea6 --- /dev/null +++ b/Server Deployment/WinForms/WinFormsBlazorHybridApp/WinFormsBlazorHybridApp.csproj @@ -0,0 +1,17 @@ + + + + WinExe + net9.0-windows + enable + true + enable + + + + + + + + + \ No newline at end of file diff --git a/Server Deployment/WinForms/WinFormsBlazorHybridApp/WinFormsBlazorHybridApp.csproj.user b/Server Deployment/WinForms/WinFormsBlazorHybridApp/WinFormsBlazorHybridApp.csproj.user new file mode 100644 index 0000000..7814ea2 --- /dev/null +++ b/Server Deployment/WinForms/WinFormsBlazorHybridApp/WinFormsBlazorHybridApp.csproj.user @@ -0,0 +1,8 @@ + + + + + Form + + + diff --git a/Server Deployment/WinForms/WinFormsBlazorHybridApp/WinFormsBlazorHybridApp.sln b/Server Deployment/WinForms/WinFormsBlazorHybridApp/WinFormsBlazorHybridApp.sln new file mode 100644 index 0000000..f57e6d9 --- /dev/null +++ b/Server Deployment/WinForms/WinFormsBlazorHybridApp/WinFormsBlazorHybridApp.sln @@ -0,0 +1,24 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinFormsBlazorHybridApp", "WinFormsBlazorHybridApp.csproj", "{3FD92601-2909-12E4-0626-B9DCF8DD9781}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3FD92601-2909-12E4-0626-B9DCF8DD9781}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3FD92601-2909-12E4-0626-B9DCF8DD9781}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3FD92601-2909-12E4-0626-B9DCF8DD9781}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3FD92601-2909-12E4-0626-B9DCF8DD9781}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C7560C67-46F8-46B0-B154-E255188EB6F3} + EndGlobalSection +EndGlobal diff --git a/Server Deployment/WinForms/WinFormsBlazorHybridApp/wwwroot/index.html b/Server Deployment/WinForms/WinFormsBlazorHybridApp/wwwroot/index.html new file mode 100644 index 0000000..e3cca11 --- /dev/null +++ b/Server Deployment/WinForms/WinFormsBlazorHybridApp/wwwroot/index.html @@ -0,0 +1,17 @@ + + + + + + WinFormsBlazor + + + + + +
Loading...
+ + + + + \ No newline at end of file