https://github.com/nich2408/blazorwebviewsamples
In this repository you can find samples on how to use Blazor within a webiew.
https://github.com/nich2408/blazorwebviewsamples
blazor dotnet webview2 wpf
Last synced: 4 months ago
JSON representation
In this repository you can find samples on how to use Blazor within a webiew.
- Host: GitHub
- URL: https://github.com/nich2408/blazorwebviewsamples
- Owner: nich2408
- Created: 2024-02-10T15:59:10.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-16T14:47:17.000Z (about 1 year ago)
- Last Synced: 2025-02-02T22:39:37.375Z (5 months ago)
- Topics: blazor, dotnet, webview2, wpf
- Language: CSS
- Homepage:
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

## 🌐 Blazor WebView samples
In this repository you can find samples on how to use Blazor within a webiew.### 📁 Included samples
#### ✉ Messages sample
- `webview-messages-sample` contains an example for transmitting messages from a WPF webview to a Blazor app.
##### ✉ Contents
- `BlazorAppSample` contains the Blazor app project to access from the webview.
- `WpfAppSample` contains the WPF project hosting the webview.##### ✉ Usage
- Open the `.sln` with Visual Studio and start the projects
- Use the `WPF` application to send messages to the `Blazor` app and viceversa

- Explore the code to find out how to use webview messages API in your projects### ❔ Other info
- The projects were created using `dotnet-8` with Visual Studio 2022 Community Edition
- WebView2 JS documentation: https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/javascript/webview
- WebView2 C# documentation: https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/wpf#step-10---communication-between-host-and-web-content
- Blazor logo and dotnet bot are property of Microsoft https://www.microsoft.com/