VOOZH about

URL: https://www.nuget.org/packages/OfficeIMO.MarkdownRenderer.Wpf/

⇱ NuGet Gallery | OfficeIMO.MarkdownRenderer.Wpf 0.1.28




OfficeIMO.MarkdownRenderer.Wpf 0.1.28

Prefix Reserved
dotnet add package OfficeIMO.MarkdownRenderer.Wpf --version 0.1.28
 
 
NuGet\Install-Package OfficeIMO.MarkdownRenderer.Wpf -Version 0.1.28
 
 
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="OfficeIMO.MarkdownRenderer.Wpf" Version="0.1.28" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.MarkdownRenderer.Wpf" Version="0.1.28" />
 
Directory.Packages.props
<PackageReference Include="OfficeIMO.MarkdownRenderer.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 OfficeIMO.MarkdownRenderer.Wpf --version 0.1.28
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OfficeIMO.MarkdownRenderer.Wpf, 0.1.28"
 
 
#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 OfficeIMO.MarkdownRenderer.Wpf@0.1.28
 
 
#: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=OfficeIMO.MarkdownRenderer.Wpf&version=0.1.28
 
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.MarkdownRenderer.Wpf&version=0.1.28
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

OfficeIMO.MarkdownRenderer.Wpf - WPF MarkdownView host

👁 nuget version
👁 nuget downloads

OfficeIMO.MarkdownRenderer.Wpf provides a reusable WPF MarkdownView control built on WebView2 and OfficeIMO.MarkdownRenderer.

Install

dotnet add package OfficeIMO.MarkdownRenderer.Wpf

Requirements

  • Windows desktop application using WPF.
  • WebView2 runtime available on the target machine.
  • OfficeIMO.MarkdownRenderer.Wpf and its OfficeIMO.MarkdownRenderer dependency.

If target machines may not already have WebView2 installed, ship or bootstrap the Evergreen WebView2 Runtime as part of your installer strategy.

Quick start

<Window
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:omd="clr-namespace:OfficeIMO.MarkdownRenderer.Wpf;assembly=OfficeIMO.MarkdownRenderer.Wpf">
 <Grid>
 <omd:MarkdownView x:Name="Preview"
 Preset="Relaxed"
 DocumentTitle="README" />
 </Grid>
</Window>
Preview.Markdown = """
# Hello

This content is rendered by OfficeIMO.MarkdownRenderer.Wpf.
""";

Preview.ConfigureRendererOptions = options =>
{
 options.EnableCodeCopyButtons = true;
 options.EnableTableCopyButtons = true;
};

Examples

Handle external navigation

using System.Diagnostics;

Preview.NavigationRequested += (_, args) =>
{
 Process.Start(new ProcessStartInfo(args.Uri.AbsoluteUri) {
 UseShellExecute = true
 });
 args.Handled = true;
};

Use pre-rendered body HTML

using OfficeIMO.MarkdownRenderer;

var options = MarkdownRendererPresets.CreateStrict();
Preview.BodyHtml = MarkdownRenderer.RenderBodyHtml(markdownText, options);
Preview.Markdown = string.Empty;

What it does

  • Hosts the OfficeIMO Markdown shell in a WPF/WebView2 control.
  • Lets host apps choose presets, CSS overrides, renderer options, and link handling.
  • Supports clipboard copy messages from shell actions.
  • Allows advanced hosts to set pre-rendered BodyHtml instead of Markdown.
  • Implements IDisposable so long-lived hosts can release WebView2 resources explicitly.

Boundaries

  • This package owns the WPF control surface.
  • Generic rendering behavior belongs in OfficeIMO.MarkdownRenderer.
  • Application-specific navigation, telemetry, fallback UI, and installer/runtime policy stay in the host app.

Targets and license

  • Targets: Windows WPF/WebView2 package targets.
  • License: MIT.
  • Repository: EvotecIT/OfficeIMO
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net8.0-windows7.0 net8.0-windows7.0 is compatible.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed.  net10.0-windows7.0 net10.0-windows7.0 is compatible. 
.NET Framework net472 net472 is compatible.  net48 net48 was computed.  net481 net481 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
0.1.28 85 6/16/2026
0.1.27 107 6/16/2026
0.1.26 96 6/15/2026
0.1.25 96 6/13/2026
0.1.24 89 6/12/2026
0.1.23 103 6/9/2026
0.1.22 98 6/5/2026
0.1.21 103 5/27/2026
0.1.20 95 5/26/2026
0.1.19 101 5/26/2026
0.1.18 97 5/23/2026
0.1.17 94 5/22/2026
0.1.16 93 5/21/2026
0.1.15 98 5/21/2026
0.1.14 89 5/20/2026
0.1.13 95 5/19/2026
0.1.12 92 5/18/2026
0.1.11 100 5/16/2026
0.1.10 97 5/14/2026
0.1.9 89 5/14/2026
Loading failed

0.1.0: introduces a reusable WPF/WebView2 MarkdownView host for OfficeIMO.MarkdownRenderer with host-driven preset, theming, clipboard, and external-link hooks.