PeakSWC.RemoteBlazorWebView.Wpf 6.0.21-preview7

This is a prerelease version of PeakSWC.RemoteBlazorWebView.Wpf.
There is a newer version of this package available.
See the version list below for details.
dotnet add package PeakSWC.RemoteBlazorWebView.Wpf --version 6.0.21-preview7
                    
NuGet\Install-Package PeakSWC.RemoteBlazorWebView.Wpf -Version 6.0.21-preview7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PeakSWC.RemoteBlazorWebView.Wpf" Version="6.0.21-preview7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PeakSWC.RemoteBlazorWebView.Wpf" Version="6.0.21-preview7" />
                    
Directory.Packages.props
<PackageReference Include="PeakSWC.RemoteBlazorWebView.Wpf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PeakSWC.RemoteBlazorWebView.Wpf --version 6.0.21-preview7
                    
#r "nuget: PeakSWC.RemoteBlazorWebView.Wpf, 6.0.21-preview7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PeakSWC.RemoteBlazorWebView.Wpf@6.0.21-preview7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PeakSWC.RemoteBlazorWebView.Wpf&version=6.0.21-preview7&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PeakSWC.RemoteBlazorWebView.Wpf&version=6.0.21-preview7&prerelease
                    
Install as a Cake Tool

RemoteBlazorWebViewTutorial

Microsoft has recently introduced two Blazor WebView Controls in .NET 6 Preview 3. One Blazor WebView control (Microsoft.AspNetCore.Components.WebView.Wpf) targets Windows Presentation Foundation (WPF) apps and the other (Microsoft.AspNetCore.Components.WebView.WindowsForms) targets Windows Form (WinForms) apps. The Microsoft controls allow developers to create user interfaces for desktop apps using Blazor web technology. The desktop apps using Blazor have the full feature set and performance of .NET 6 and are not contrained like a Blazor WebAssembly app.

The remoteable versions of the Blazor WebView Controls (PeakSWC.RemoteBlazorWebView.Wpf and PeakSWC.RemoteBlazorWebView.WindowsForms) act as a drop-in replacement for the Microsoft controls along with the ability to share the user interface over a secure connection to a public server using a web browser. This is accomplished by setting up a secure server (RemoteableWebWindowService) in the cloud and pointing your browser to it. With a couple of minimal changes you will be able to either run your app locally or remotely control your application.

Use Cases

The primary use case is to be able to share a desktop application controlling hardware with an external service technician. Typically, the application is behind a corporate firewall and is not easily accessed by the technician. The Remote Blazor controls allow the desktop application to be started in "Remote" mode which generates a unique Url for the technician to access the user interface.

Another use case is to be able to monitor data that is behind a firewall or on a private network without the cost and complexity to store the data externally. For example, if a brewer wanted to monitor fermentation data such as PH, Gravity, and Pressure they could build an app showing real-time graphical data using Blazor components and, with only a couple of changes, be able to view the user interface with a web browser from outside of the firewall.

How it works

RemoteBlazorWebView.Wpf has two modes of operation. In the first default mode, it works just like the Microsoft BlazorWebView Controls (see BlazorDesktopWPF). In the second mode, a url is specified on the control's properties. In this mode, all GUI interactions are sent to a server which can be accessed with a browser. Hosting the server (RemotableWebViewService.exe) in the cloud allows you to remotely control an application which is behind a firewall or does not have a static IP address.

Demo Quick Start

Install the RemotableWebViewService

dotnet tool update -g PeakSWC.RemoteableWebViewService --version 6.*-* --ignore-failed-sources

Start the server

RemoteableWebViewService

Open the RemoteBlazorWebViewTutorial.sln with Visual Studio

Run the Local Profile using the Run button

Make sure the RemoteBlazorWebViewTutorial.WppfApp is set as Startup Project

Next we will run the application remotely

Run the Remote Profile using the Run button

A main window will come up with a URL. Click on it

At this point the sample blazor app will be running in a web browser!

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0-preview5 118 6/14/2025
10.0.0-preview4 229 5/14/2025
10.0.0-preview3 78 4/12/2025
9.0.6 139 6/15/2025
9.0.5 496 5/14/2025
9.0.4 145 4/12/2025
9.0.2 173 2/16/2025
9.0.1 127 1/18/2025
9.0.0 158 11/14/2024
9.0.0-rc2 82 10/26/2024
9.0.0-preview7 253 8/19/2024
9.0.0-preview6 70 7/29/2024
9.0.0-preview5 97 6/23/2024
8.0.11 142 11/14/2024
8.0.10 1,408 10/10/2024
8.0.8 290 8/20/2024
8.0.7 143 7/29/2024
8.0.6 266 6/19/2024
8.0.4 173 6/19/2024
8.0.3 173 4/20/2024
8.0.2 663 2/23/2024
8.0.1 168 2/16/2024
8.0.0 227 12/30/2023
8.0.0-rc2 104 10/14/2023
8.0.0-preview5 144 6/15/2023
8.0.0-preview4 141 5/24/2023
8.0.0-preview3 151 4/21/2023
8.0.0-preview2 152 3/29/2023
7.0.16 178 2/25/2024
7.0.14 200 12/29/2023
7.0.12 295 10/14/2023
7.0.9 230 8/15/2023
7.0.7 265 6/14/2023
7.0.5 1,876 4/20/2023
7.0.4 393 3/24/2023
7.0.3 279 3/17/2023
7.0.2 376 1/29/2023
7.0.0 465 11/13/2022
7.0.0-rc1 176 10/9/2022
7.0.0-pre6 261 7/14/2022
7.0.0-pre5 266 7/2/2022
7.0.0-pre4 211 5/11/2022
6.3.9 743 2/11/2023
6.3.8 356 2/1/2023
6.3.7 358 1/31/2023
6.3.6 464 11/13/2022
6.3.5 496 10/11/2022
6.3.4 1,359 7/13/2022
6.3.3 713 7/3/2022
6.3.2 520 6/15/2022
6.3.1 739 5/25/2022
6.3.0 246 5/21/2022
6.2.0 270 5/8/2022
6.1.2-pre 212 4/7/2022
6.1.1-pre 551 2/19/2022
6.1.0-pre 284 2/7/2022
6.0.38-pre 244 2/1/2022
6.0.37-pre 263 1/25/2022
6.0.36 318 1/4/2022
6.0.35 262 1/1/2022
6.0.34 239 12/30/2021
6.0.33 231 12/29/2021
6.0.32 316 12/12/2021
6.0.31 328 12/4/2021
6.0.30 841 12/3/2021
6.0.29 315 11/17/2021
6.0.28-rc2 293 10/14/2021
6.0.27-rc1 265 10/11/2021
6.0.26-rc1 220 10/7/2021
6.0.25-rc1 279 10/4/2021
6.0.24-rc1 306 10/1/2021
6.0.23-rc1 279 9/26/2021
6.0.22-rc1 254 9/15/2021
6.0.21-preview7 274 9/7/2021
6.0.20-preview7 250 8/26/2021
6.0.16-preview7 222 8/25/2021
6.0.15-preview7 247 8/13/2021
6.0.13-preview6 230 8/9/2021
6.0.12-preview6 298 8/1/2021
6.0.11-preview6 217 7/16/2021
6.0.10-preview5 351 7/10/2021
6.0.9-preview5 316 6/29/2021
6.0.8-preview5 309 6/22/2021
6.0.7-preview4 235 6/17/2021
6.0.6-preview4 245 6/1/2021
6.0.5-preview4 270 5/28/2021
6.0.4-preview4 269 5/28/2021
6.0.3-preview4 257 5/26/2021
6.0.2-preview3 229 5/26/2021
6.0.1-preview3 242 5/22/2021
0.1.7-pre 323 5/25/2021
0.1.6-pre 328 2/21/2021
0.1.4-pre 462 11/1/2020