ShowMeTheXAML 2.1.1

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

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ShowMeTheXAML:

Package Downloads
ShowMeTheXAML.AvalonEdit

AvalonEdit style for the ShowMeTheXAML XamlDisplay control.

DesktopUniversalFrame

WPF(.NetCore3.1)基于MVVM+2D、3D的通用模板运用,适用于医疗和工业

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on ShowMeTheXAML:

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
teknogods/TeknoParrotUI
Open Source JVS / Arcade Emulator for Windows
lindexi/lindexi_gd
博客用到的代码
Version Downloads Last Updated
2.1.1 622 11/14/2025
2.1.0 296 11/14/2025
2.1.0-ci89 243 11/14/2025
2.1.0-ci87 240 11/14/2025
2.0.0 183,525 10/10/2020
2.0.0-ci9 567 10/4/2020
2.0.0-ci8 480 10/4/2020
2.0.0-ci7 530 10/4/2020
2.0.0-ci60 806 10/10/2020
2.0.0-ci55 700 10/10/2020
2.0.0-ci53 772 10/10/2020
2.0.0-ci16 713 10/6/2020
2.0.0-ci12 690 10/5/2020
2.0.0-ci11 605 10/4/2020
1.1.0-ci78 520 10/4/2020
1.1.0-ci73 27,577 2/7/2020
1.1.0-ci71 8,725 10/5/2019
1.1.0-ci70 3,947 7/31/2019
1.1.0-ci68 653 7/30/2019
1.0.13-ci65 1,178 1/29/2019
1.0.13-ci59 734 1/22/2019
1.0.13-ci57 869 12/17/2018
1.0.12 163,224 12/17/2018
1.0.12-ci54 747 12/17/2018
1.0.12-ci53 825 11/22/2018
1.0.11 2,687 11/22/2018
1.0.11-ci50 790 11/22/2018
1.0.11-ci49 1,759 4/23/2018
1.0.11-ci48 1,325 4/23/2018
1.0.10 19,682 4/23/2018
1.0.10-ci45 1,355 4/3/2018
1.0.10-ci44 1,337 2/9/2018
1.0.10-ci42 1,401 1/10/2018
1.0.9 12,987 1/10/2018
1.0.9-ci40 1,393 1/10/2018
1.0.9-ci39 1,377 1/7/2018
1.0.9-ci38 1,451 12/30/2017
1.0.9-ci37 1,383 12/30/2017
1.0.8 2,320 12/30/2017
1.0.8-ci35 1,408 12/28/2017
1.0.8-ci33 1,342 12/27/2017
1.0.8-ci32 1,366 12/27/2017
1.0.8-ci31 1,339 12/26/2017
1.0.8-ci29 1,401 12/20/2017
1.0.8-ci28 1,432 12/19/2017
1.0.8-ci25 1,417 12/9/2017
1.0.8-ci23 1,100 12/4/2017
1.0.7 2,038 12/4/2017
1.0.7-ci21 1,109 12/4/2017
1.0.6 1,554 12/4/2017
1.0.6-ci20 1,115 12/4/2017
1.0.6-ci19 1,136 11/30/2017
1.0.6-ci17 1,065 11/29/2017
1.0.5 1,982 11/29/2017
1.0.5-ci15 1,138 11/29/2017
1.0.4 1,906 11/29/2017
1.0.3 7,176 11/29/2017
1.0.2-ci14 1,123 11/29/2017
1.0.1-ci11 1,132 11/28/2017
1.0.1-ci10 1,133 11/28/2017
1.0.0-ci9 1,101 11/28/2017