ShowMeTheXAML.AvalonEdit 2.1.1

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

ShowMeTheXAML

A WPF component making it easy to show the corresponding XAML for WPF custom styles and controls. It was built out of a need to shows the XAML for the theme library MaterialDesignInXamlToolkit. You can see it working in the demo application for MaterialDesignInXamlToolkit.

NuGet Status NuGet Status NuGet Status

Setup

  1. Install the MSBuild package. PM> Install-Package ShowMeTheXAML.MSBuild This will also install the ShowMeTheXAML package as well.
  2. Add the following code in your App.xaml.cs
protected override void OnStartup(StartupEventArgs e)
{
    XamlDisplay.Init();
    base.OnStartup(e);
}
  1. (Optional) The default template is pretty basic. For a better looking style add the ShowMeTheXAML.AvalonEdit package. PM> Install-Package ShowMeTheXAML.AvalonEdit In App.xaml include the resource dictionary.
<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/ShowMeTheXAML.AvalonEdit;component/Themes/xamldisplayer.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

Usage

<smtx:XamlDisplay UniqueKey="SomeUniqueString">
  <StackPanel>
    <Button Content="Some Content" />
    <TextBlock Text="Text" />
  </StackPanel>
</smtx:XamlDisplay>
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. 
.NET Framework net472 is compatible.  net48 was computed.  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 (3)

Showing the top 3 popular GitHub repositories that depend on ShowMeTheXAML.AvalonEdit:

Repository Stars
MaterialDesignInXAML/MaterialDesignInXamlToolkit
Google's Material Design in XAML & WPF, for C# & VB.Net.
HenJigg/wpf-abp
Cross-platform mobile project and WPF client based on ABP framework Xamarin.Forms
lindexi/lindexi_gd
博客用到的代码
Version Downloads Last Updated
2.1.1 1,285 11/14/2025
2.1.0 414 11/14/2025
2.1.0-ci89 288 11/14/2025
2.1.0-ci87 292 11/14/2025
2.0.0 139,234 10/10/2020
2.0.0-ci9 527 10/4/2020
2.0.0-ci60 685 10/10/2020
2.0.0-ci55 586 10/10/2020
2.0.0-ci53 633 10/10/2020
2.0.0-ci16 613 10/6/2020
2.0.0-ci12 585 10/5/2020
2.0.0-ci11 655 10/4/2020
1.1.0-ci73 28,100 2/7/2020
1.1.0-ci71 7,378 10/5/2019
1.1.0-ci70 3,350 7/31/2019
1.1.0-ci68 544 7/30/2019
1.0.13-ci65 727 1/29/2019
1.0.13-ci59 630 1/22/2019
1.0.13-ci57 665 12/17/2018
1.0.12 48,349 12/17/2018
Loading failed