WebWindow | NET Core library to open native OS windows containing web UI

 by   SteveSandersonMS TypeScript Version: Current License: Apache-2.0

kandi X-RAY | WebWindow Summary

kandi X-RAY | WebWindow Summary

WebWindow is a TypeScript library. WebWindow has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

For information, see this blog post.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              WebWindow has a medium active ecosystem.
              It has 2001 star(s) with 215 fork(s). There are 116 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 50 open issues and 49 have been closed. On average issues are closed in 41 days. There are 24 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of WebWindow is current.

            kandi-Quality Quality

              WebWindow has 0 bugs and 0 code smells.

            kandi-Security Security

              WebWindow has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              WebWindow code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              WebWindow is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              WebWindow releases are not available. You will need to build from source code and install.
              Installation instructions are available. Examples and code snippets are not available.
              It has 377 lines of code, 0 functions and 75 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of WebWindow
            Get all kandi verified functions for this library.

            WebWindow Key Features

            No Key Features are available at this moment for WebWindow.

            WebWindow Examples and Code Snippets

            No Code Snippets are available at this moment for WebWindow.

            Community Discussions

            QUESTION

            WebView2 can't print html document with embedded pdf data (base64)
            Asked 2021-Mar-30 at 11:18

            In my WPF application I have a window that loads an html string to show to the user. Then there is a Button that let the user open the printing dialog and print the document (using the javascript code window.print();).

            The problem is: if the html document contains an embedded pdf (

            Here it is the same code in a sample application to reproduce the problem (comment the call to GetHtmlWithEmbeddedPdf to see the dialog working, and decomment it to see the error).

            The Window:

            ...

            ANSWER

            Answered 2021-Mar-30 at 11:18

            This is a security feature, not a bug. It's also not limited to WebView2 but applies to Chromium in general.

            The embedded PDF object is causing the HTML document to be sandboxed. Thus preventing window.print() from executing as usual.

            This is as specified by the HTML specification:

            The printing steps for a Document document are:

            1. ...
            2. If the active sandboxing flag set of document has the sandboxed modals flag set, then return.

            This is also why Ctrl+P still works and brings up the print dialog, as it is a user action not affected by this security issue.

            Workaround

            Until WebView2 "natively" supports printing, the best workaround I can currently think of is to load the PDF inside an iframe, thus freeing the parent document from being sandboxed:

            Source https://stackoverflow.com/questions/66865895

            QUESTION

            WebView2 EnsureCoreWebView2Async never returns
            Asked 2021-Mar-27 at 18:21

            In my WPF application I need to show an html string, and I know that I need to call EnsureCoreWebView2Async method before calling NavigateToString because otherwise the CoreWebView will be null and I would have an exception. The problem is that awaiting EnsureCoreWebView2Async never ends.

            I created a little application in order to reproduce the problem (and excluding issues related to my big project) and the problem is the same.

            • If I set the WebView2's Source property passing an Url, then it works!
            • If I call NavigateToString without calling EnsureCoreWebView2Async, I get an exception (as expected).
            • If I call EnsureCoreWebView2Async before calling NavigateToString or before setting the Source property (it should not be a problem, because calling it many times should not have any effect according to the documentation) then it hangs forever. No exceptions are raised by the call, and no messages in the console. Very frustrating.

            Here are the code for the sample application (I main window with 2 buttons, one that opens the url and one that load the html string - the first one works):

            ...

            ANSWER

            Answered 2021-Mar-27 at 18:21

            You should defer to initialize the webview until OnContentRendered is called. I changed your code and it worked as a charm. See the changes below.

            Source https://stackoverflow.com/questions/66829201

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install WebWindow

            If you want to build the WebWindow library itself, you will need:.
            Windows, Mac, or Linux
            Node.js (because WebWindow.Blazor.JS includes TypeScript code, so the build process involves calling Node to perform a Webpack build)
            If you're on Windows: Use Visual Studio with C++ support enabled. You must build in x64 configuration (not AnyCPU, which is the default). If things don't seem to be updating, try right-clicking one of the testassets projects and choose Rebuild to force it to rebuild the native assets.
            If you're on macOS: Install Xcode so that you have the whole gcc toolchain available on the command line. From the repo root, run dotnet build src/WebWindow/WebWindow.csproj Then you can cd testassets/HelloWorldApp and dotnet run
            If you're on Linux (tested with Ubuntu 18.04): Install dependencies: sudo apt-get update && sudo apt-get install libgtk-3-dev libwebkit2gtk-4.0-dev From the repo root, run dotnet build src/WebWindow/WebWindow.csproj Then you can cd testassets/HelloWorldApp and dotnet run
            If you're on Windows Subsystem for Linux (WSL), then as well as the above, you will need a local X server (example setup).

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/SteveSandersonMS/WebWindow.git

          • CLI

            gh repo clone SteveSandersonMS/WebWindow

          • sshUrl

            git@github.com:SteveSandersonMS/WebWindow.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular TypeScript Libraries

            developer-roadmap

            by kamranahmedse

            vscode

            by microsoft

            angular

            by angular

            TypeScript

            by microsoft

            ant-design

            by ant-design

            Try Top Libraries by SteveSandersonMS

            CarChecker

            by SteveSandersonMSC#

            DotNetIsolator

            by SteveSandersonMSC#

            dotnet-wasi-sdk

            by SteveSandersonMSC#

            BlazorDesktop

            by SteveSandersonMSTypeScript

            BlazorInputFile

            by SteveSandersonMSC#