RichMarkdownPad.Controller 0.1.1

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

RichMarkdownPad

Japanese

WPFアプリに組み込める、Markdown編集 + ライブプレビュー用コントローラーです。

Features

  • 2ペインUI(左: エディタ / 右: WebView2プレビュー)
  • MarkdigによるMarkdown → HTML変換
  • デバウンス付きライブプレビュー更新
  • Dirty状態管理とOpen/Save要求イベント通知

Requirements

  • .NET 10
  • Windows(WPF / WebView2)

Install

<ItemGroup>
  <PackageReference Include="RichMarkdownPad.Controller" Version="0.1.0" />
</ItemGroup>

Public API

Main class: MarkdownEditorControl

  • Events
    • OpenRequested
    • SaveRequested
    • DirtyStateChanged (EventHandler<bool>)
  • Properties
    • DocumentText (string)
    • IsDirty (bool, read-only)
  • Methods
    • MarkDocumentSaved()

Quick Usage

<controller:MarkdownEditorControl x:Name="EditorControl"
                                  OpenRequested="OnOpenRequested"
                                  SaveRequested="OnSaveRequested" />
private async void OnOpenRequested(object sender, EventArgs e)
{
    EditorControl.DocumentText = await File.ReadAllTextAsync(path);
}

private async void OnSaveRequested(object sender, EventArgs e)
{
    await File.WriteAllTextAsync(path, EditorControl.DocumentText);
    EditorControl.MarkDocumentSaved();
}

Host Responsibilities

  • ファイルI/O(Open/Saveダイアログ、読み書き)
  • 未保存確認ダイアログ
  • アプリ側ステータス表示(必要な場合)

English

A reusable WPF controller for Markdown editing with live preview.

Features

  • Two-pane UI (left: editor / right: WebView2 preview)
  • Markdown to HTML conversion using Markdig
  • Debounced live preview updates
  • Dirty-state management and Open/Save request events

Requirements

  • .NET 10
  • Windows (WPF / WebView2)

Install

<ItemGroup>
  <PackageReference Include="RichMarkdownPad.Controller" Version="0.1.0" />
</ItemGroup>

Public API

Main class: MarkdownEditorControl

  • Events
    • OpenRequested
    • SaveRequested
    • DirtyStateChanged (EventHandler<bool>)
  • Properties
    • DocumentText (string)
    • IsDirty (bool, read-only)
  • Methods
    • MarkDocumentSaved()

Quick Usage

<controller:MarkdownEditorControl x:Name="EditorControl"
                                  OpenRequested="OnOpenRequested"
                                  SaveRequested="OnSaveRequested" />
private async void OnOpenRequested(object sender, EventArgs e)
{
    EditorControl.DocumentText = await File.ReadAllTextAsync(path);
}

private async void OnSaveRequested(object sender, EventArgs e)
{
    await File.WriteAllTextAsync(path, EditorControl.DocumentText);
    EditorControl.MarkDocumentSaved();
}

Host Responsibilities

  • File I/O (open/save dialogs, read/write)
  • Unsaved-change confirmation
  • Optional app-side status display
Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
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
0.1.1 37 3/9/2026
0.1.0 36 3/9/2026