diff --git a/webviewer-wpf/WebView2/App.xaml b/webviewer-wpf/WebView2/App.xaml deleted file mode 100644 index 26e82a8b..00000000 --- a/webviewer-wpf/WebView2/App.xaml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/webviewer-wpf/WebView2/App.xaml.cs b/webviewer-wpf/WebView2/App.xaml.cs deleted file mode 100644 index dd0ad043..00000000 --- a/webviewer-wpf/WebView2/App.xaml.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System.Configuration; -using System.Data; -using System.Windows; - -namespace WebView2; - -/// -/// Interaction logic for App.xaml -/// -public partial class App : Application -{ -} - diff --git a/webviewer-wpf/WebView2/AssemblyInfo.cs b/webviewer-wpf/WebView2/AssemblyInfo.cs deleted file mode 100644 index cc29e7f7..00000000 --- a/webviewer-wpf/WebView2/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -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/webviewer-wpf/WebView2/MainWindow.xaml b/webviewer-wpf/WebView2/MainWindow.xaml deleted file mode 100644 index f3c96a01..00000000 --- a/webviewer-wpf/WebView2/MainWindow.xaml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - diff --git a/webviewer-wpf/WebView2/MainWindow.xaml.cs b/webviewer-wpf/WebView2/MainWindow.xaml.cs deleted file mode 100644 index b8cacbc3..00000000 --- a/webviewer-wpf/WebView2/MainWindow.xaml.cs +++ /dev/null @@ -1,52 +0,0 @@ -using IO = System.IO; -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.Web.WebView2.Core; -using Microsoft.Web.WebView2.Wpf; - -namespace WebView2; - -/// -/// Interaction logic for MainWindow.xaml -/// -public partial class MainWindow : Window -{ - public MainWindow() - { - InitializeComponent(); - InitializeWebView(); - } - - private async void InitializeWebView() - { - await webViewUI.EnsureCoreWebView2Async(null); - - //Set up a virtual host and map to local folder containing Apryse's WebViewer - webViewUI.CoreWebView2.SetVirtualHostNameToFolderMapping( - "app.local", - GetWebViewerPath(), - CoreWebView2HostResourceAccessKind.Allow); - - //Navigate to the page on virtual host - webViewUI.CoreWebView2.Navigate("https://app.local/index.html"); - } - - private string GetWebViewerPath() - { - //Get the path to the current directory - string rootPath = AppDomain.CurrentDomain.BaseDirectory; - - //Get the path to the webviewer folder using relative path, moving up 4 levels - rootPath = IO.Path.GetFullPath(IO.Path.Combine(rootPath, @"..\..\..\..\")); - string projectPath = IO.Path.Combine(rootPath, @"webview2\webviewer"); - return projectPath; - } -} \ No newline at end of file diff --git a/webviewer-wpf/WebView2/WebView2.csproj b/webviewer-wpf/WebView2/WebView2.csproj deleted file mode 100644 index 20938f48..00000000 --- a/webviewer-wpf/WebView2/WebView2.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - WinExe - net9.0-windows - enable - enable - true - - - - - - - diff --git a/webviewer-wpf/WebView2/WebView2.sln b/webviewer-wpf/WebView2/WebView2.sln deleted file mode 100644 index e591416a..00000000 --- a/webviewer-wpf/WebView2/WebView2.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.13.35825.156 d17.13 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebView2", "WebView2.csproj", "{B4D8D2D2-8C85-40BA-B915-468E4D4869EC}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {B4D8D2D2-8C85-40BA-B915-468E4D4869EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B4D8D2D2-8C85-40BA-B915-468E4D4869EC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B4D8D2D2-8C85-40BA-B915-468E4D4869EC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B4D8D2D2-8C85-40BA-B915-468E4D4869EC}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {58170C69-E511-4E4A-9325-E98AD66972E4} - EndGlobalSection -EndGlobal diff --git a/webviewer-wpf/WebView2/WebViewer/WebviewerDemoDoc.pdf b/webviewer-wpf/WebView2/WebViewer/WebviewerDemoDoc.pdf deleted file mode 100644 index f3c925c9..00000000 Binary files a/webviewer-wpf/WebView2/WebViewer/WebviewerDemoDoc.pdf and /dev/null differ diff --git a/webviewer-wpf/WebView2/WebViewer/index.html b/webviewer-wpf/WebView2/WebViewer/index.html deleted file mode 100644 index 65efd6b8..00000000 --- a/webviewer-wpf/WebView2/WebViewer/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - - Basic WebViewer - - - - - -
- - - \ No newline at end of file