OutSystems WebView

repository·master·Indexed 20 days ago

https://github.com/outsystems/webview

A .NET wrapper for CefGlue that enables embedding Chromium-based web views into Avalonia and WPF applications. It provides a strongly-typed API for JavaScript interaction, resource interception, and custom protocols. Available via NuGet as WebViewControl-Avalonia and WebViewControl-WPF, supporting x64 and ARM64 architectures across Windows, macOS, and Linux.

Tokens
549
Snippets
1
Records
3
Agent score
20%

What's inside outsystems-webview

  1. Overview of WebView features

    master

    WebView is a .NET wrapper around CefGlue that provides a simplified API for embedding Chromium. Key features include:

    • Strongly-typed JavaScript evaluation: Results from JavaScript evaluation are returned as the appropriate .NET type.
    • Performance: Scripts are aggregated and executed in bulk.
    • Synchronous Execution: Ability to evaluate JavaScript synchronously.
    • Error Handling: JavaScript error handling includes call stack information.
    • Resource Interception: Events to intercept and respond to resource loading.
    • Download Tracking: Events to track file download progress.
    • Custom Protocols: Ability to load embedded resources using custom protocols.
    • Navigation Control: Ability to disable history navigation.
    • Proxy Support: Support for proxy configuration.
    • Offscreen Rendering: Option to run in offscreen rendering mode (though not recommended due to known issues).
  2. Install WebView for Avalonia or WPF via NuGet

    master

    WebView provides Avalonia and WPF control implementations to embed Chromium in .NET applications. You can install the appropriate package via NuGet depending on your framework:

    • For Avalonia applications: WebViewControl-Avalonia
    • For WPF applications: WebViewControl-WPF

    These packages contain the stable binaries required to embed Chromium in your .NET/CLR application.

    # For Avalonia
    dotnet add package WebViewControl-Avalonia
    
    # For WPF
    dotnet add package WebViewControl-WPF
  3. Check platform and architecture compatibility

    master

    WebView supports various operating systems and architectures. Note that only x64 and ARM64 architectures are currently supported.

    OSx64ARM64WPFAvalonia
    Windows✔️✔️✔️✔️
    macOS✔️✔️✔️
    Linux✔️🔘✔️
    • ✔️ Supported
    • ❌ Not supported
    • 🔘 Works with issues (Linux ARM64)

    For specific details regarding Linux distributions and known issues, refer to the LINUX.md documentation.