https://github.com/keboo/showmethexaml
A WPF component making it easy to show the corresponding XAML for WPF custom styles and controls
https://github.com/keboo/showmethexaml
hacktoberfest
Last synced: over 1 year ago
JSON representation
A WPF component making it easy to show the corresponding XAML for WPF custom styles and controls
- Host: GitHub
- URL: https://github.com/keboo/showmethexaml
- Owner: Keboo
- License: mit
- Created: 2017-11-15T16:41:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-10T23:15:08.000Z (almost 6 years ago)
- Last Synced: 2024-10-17T17:58:22.335Z (over 1 year ago)
- Topics: hacktoberfest
- Language: C#
- Homepage:
- Size: 162 KB
- Stars: 182
- Watchers: 14
- Forks: 28
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/ButchersBoy/MaterialDesignInXamlToolkit). You can see it working in the [demo application](https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/releases) for MaterialDesignInXamlToolkit.
[](https://www.nuget.org/packages/ShowMeTheXAML/)
[](https://www.nuget.org/packages/ShowMeTheXAML.MSBuild/)
[](https://www.nuget.org/packages/ShowMeTheXAML.AvalonEdit/)
## 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`
```C#
protected override void OnStartup(StartupEventArgs e)
{
XamlDisplay.Init();
base.OnStartup(e);
}
```
3. (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.
```XAML
```
## Usage
```XAML
```