{"id":16251024,"url":"https://github.com/keboo/showmethexaml","last_synced_at":"2025-03-16T12:33:04.889Z","repository":{"id":60312720,"uuid":"110859787","full_name":"Keboo/ShowMeTheXAML","owner":"Keboo","description":"A WPF component making it easy to show the corresponding XAML for WPF custom styles and controls","archived":false,"fork":false,"pushed_at":"2020-10-10T23:15:08.000Z","size":166,"stargazers_count":182,"open_issues_count":1,"forks_count":28,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-10-17T17:58:22.335Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Keboo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-15T16:41:32.000Z","updated_at":"2024-07-17T09:56:49.000Z","dependencies_parsed_at":"2022-09-27T23:50:15.354Z","dependency_job_id":null,"html_url":"https://github.com/Keboo/ShowMeTheXAML","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keboo%2FShowMeTheXAML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keboo%2FShowMeTheXAML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keboo%2FShowMeTheXAML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keboo%2FShowMeTheXAML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Keboo","download_url":"https://codeload.github.com/Keboo/ShowMeTheXAML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221663787,"owners_count":16859908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest"],"created_at":"2024-10-10T15:08:39.753Z","updated_at":"2024-10-27T10:35:51.262Z","avatar_url":"https://github.com/Keboo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShowMeTheXAML\nA 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.\n\n[![NuGet Status](http://img.shields.io/nuget/v/ShowMeTheXAML.svg?style=flat\u0026label=ShowMeTheXAML)](https://www.nuget.org/packages/ShowMeTheXAML/)\n[![NuGet Status](http://img.shields.io/nuget/v/ShowMeTheXAML.MSBuild.svg?style=flat\u0026label=ShowMeTheXAML.MSBuild)](https://www.nuget.org/packages/ShowMeTheXAML.MSBuild/)\n[![NuGet Status](http://img.shields.io/nuget/v/ShowMeTheXAML.AvalonEdit.svg?style=flat\u0026label=ShowMeTheXAML.AvalonEdit)](https://www.nuget.org/packages/ShowMeTheXAML.AvalonEdit/)\n\n## Setup\n1. Install the MSBuild package. `PM\u003e Install-Package ShowMeTheXAML.MSBuild` This will also install the `ShowMeTheXAML` package as well.\n2. Add the following code in your `App.xaml.cs`\n```C#\nprotected override void OnStartup(StartupEventArgs e)\n{\n    XamlDisplay.Init();\n    base.OnStartup(e);\n}\n```\n3. (Optional) The default template is pretty basic. For a better looking style add the ShowMeTheXAML.AvalonEdit package. `PM\u003e Install-Package ShowMeTheXAML.AvalonEdit`\nIn App.xaml include the resource dictionary.\n```XAML\n\u003cApplication.Resources\u003e\n    \u003cResourceDictionary\u003e\n        \u003cResourceDictionary.MergedDictionaries\u003e\n            \u003cResourceDictionary Source=\"pack://application:,,,/ShowMeTheXAML.AvalonEdit;component/Themes/xamldisplayer.xaml\" /\u003e\n        \u003c/ResourceDictionary.MergedDictionaries\u003e\n    \u003c/ResourceDictionary\u003e\n\u003c/Application.Resources\u003e\n```\n\n## Usage\n```XAML\n\u003csmtx:XamlDisplay UniqueKey=\"SomeUniqueString\"\u003e\n  \u003cStackPanel\u003e\n    \u003cButton Content=\"Some Content\" /\u003e\n    \u003cTextBlock Text=\"Text\" /\u003e\n  \u003c/StackPanel\u003e\n\u003c/smtx:XamlDisplay\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeboo%2Fshowmethexaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeboo%2Fshowmethexaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeboo%2Fshowmethexaml/lists"}