![]() |
VOOZH | about |
dotnet add package MyNet.Xaml.Html --version 7.0.0
NuGet\Install-Package MyNet.Xaml.Html -Version 7.0.0
<PackageReference Include="MyNet.Xaml.Html" Version="7.0.0" />
<PackageVersion Include="MyNet.Xaml.Html" Version="7.0.0" />Directory.Packages.props
<PackageReference Include="MyNet.Xaml.Html" />Project file
paket add MyNet.Xaml.Html --version 7.0.0
#r "nuget: MyNet.Xaml.Html, 7.0.0"
#:package MyNet.Xaml.Html@7.0.0
#addin nuget:?package=MyNet.Xaml.Html&version=7.0.0Install as a Cake Addin
#tool nuget:?package=MyNet.Xaml.Html&version=7.0.0Install as a Cake Tool
<div id="top"></div>
<br /> <div align="center"> <img src="../../assets/MyXaml.png" width="128" alt="MyXaml"> </div>
<h1 align="center">My .NET XAML to HTML</h1>
XAML to HTML conversion utilities and helpers for cross-platform content rendering in .NET applications.
π .NET 8.0
π .NET 9.0
π .NET 10.0
π C#
Install via NuGet:
dotnet add package MyNet.Xaml.Html
using MyNet.Xaml.Html;
// Convert XAML string to HTML
string xamlContent = "<TextBlock>Hello World</TextBlock>";
string htmlContent = XamlToHtmlConverter.Convert(xamlContent);
// Convert a WPF FlowDocument to HTML
FlowDocument document = new FlowDocument();
document.Blocks.Add(new Paragraph(new Run("Sample text")));
string html = XamlToHtmlConverter.ConvertFlowDocument(document);
var options = new ConversionOptions
{
PreserveWhitespace = true,
IncludeStyles = true,
CustomCssClasses = new Dictionary<string, string>()
};
string html = XamlToHtmlConverter.Convert(xamlContent, options);
This package is part of the MyWpf collection:
Contributions are welcome! Please see the for more information.
Copyright Β© 2016-2025 StΓ©phane ANDRE.
MyNet.Xaml.Html is provided as-is under the MIT license. For more information see .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 net8.0-windows7.0 is compatible. net9.0-windows net9.0-windows was computed. net9.0-windows7.0 net9.0-windows7.0 is compatible. net10.0-windows net10.0-windows was computed. net10.0-windows7.0 net10.0-windows7.0 is compatible. |
Showing the top 1 NuGet packages that depend on MyNet.Xaml.Html:
| Package | Downloads |
|---|---|
|
MyNet.Wpf
This library is a comprehensive class library designed to simplify the implementation of common GUI functionalities in .NET applications. |
This package is not used by any popular GitHub repositories.