NMBrowser 1.1.13

dotnet add package NMBrowser --version 1.1.13
                    
NuGet\Install-Package NMBrowser -Version 1.1.13
                    
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="NMBrowser" Version="1.1.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NMBrowser" Version="1.1.13" />
                    
Directory.Packages.props
<PackageReference Include="NMBrowser" />
                    
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 NMBrowser --version 1.1.13
                    
#r "nuget: NMBrowser, 1.1.13"
                    
#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 NMBrowser@1.1.13
                    
#: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=NMBrowser&version=1.1.13
                    
Install as a Cake Addin
#tool nuget:?package=NMBrowser&version=1.1.13
                    
Install as a Cake Tool

NMBrowser(なみぶらうざ)

WebView2 を利用した Windows Forms 用のカスタムコントロールです。
webview2をUI 描画専用コンポーネントとして動作させます。

Windows Forms アプリケーションの画面を HTML で構築できるため、
従来の WinForms では難しかった リッチな UI を簡単に実装できます。 NMBrowser(なみぶらうざ)は、UIにHTML/CSSのメリットを享受し、内部はC#のメリットを享受できるハイブリッドアプリケーションを実現します

本パッケージは .NET 8 以降の Windows Forms アプリケーションで利用可能です。 .NET 7 / .NET 6 / .NET Framework には対応していません。

概要

  • WebView2 を UI レンダリング専用に利用
  • WinForms のフォーム上に配置して利用
  • ボタンやレイアウトなどを HTML/CSS で記述可能
  • 内部処理は、C#で記述可能

インストール

Visual StudioのNuGet パッケージ管理からインストールできます。

  1. プロジェクトを右クリック
  2. NuGet パッケージの管理 を選択
  3. 「参照」タブでパッケージ名を検索
  4. インストール ボタンをクリック

コマンドラインからの場合

.NET CLI:

dotnet add package NMBrowser

パッケージ マネージャー コンソール:

Install-Package NMBrowser

使い方(概要)

1. デザイナでカスタムコントロールを配置

フォームのデザイナ上に NmBrowser コントロールを配置します。

2. フォームのコンストラクタで初期化

少なくとも 1 つ以上のページクラスを追加してから、Initialize() を呼び出します。

public Form1()
{
    InitializeComponent();

    // ページを追加
    nmBrowser1.AddPage(new PageWelcome());

    // 初期化
    nmBrowser1.Initialize();
}

public class PageWelcome : NMWebPage
{
    public override void Draw()
    {
        Render(@"
            <h1>ようこそ</h1>
            <p>これが最初のページです</p>
        ");
    }
}

関連ドキュメント

NuGetパッケージページ

ライセンス

このパッケージは Apache License 2.0 のもとで公開されています。 商業利用、改変、再配布は自由ですが、著作権表示の維持が必要です。

Copyright (c) 2026 omojikomoji
Licensed under the Apache License, Version 2.0.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  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
1.1.13 97 8/10/2026
1.1.12 89 8/9/2026
1.1.11 105 7/27/2026
1.1.10 103 7/23/2026
1.1.9 102 7/22/2026
1.1.8 99 7/17/2026
1.1.7 104 7/14/2026