https://github.com/sandre58/myxaml
Simplifies the management and organization of resources in XAML-based applications by merging multiple resource dictionary files into a single, consolidated file.
https://github.com/sandre58/myxaml
msbuild net80 xaml
Last synced: 8 months ago
JSON representation
Simplifies the management and organization of resources in XAML-based applications by merging multiple resource dictionary files into a single, consolidated file.
- Host: GitHub
- URL: https://github.com/sandre58/myxaml
- Owner: sandre58
- License: mit
- Created: 2024-04-30T20:29:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-10-06T20:17:53.000Z (8 months ago)
- Last Synced: 2025-10-06T22:23:45.486Z (8 months ago)
- Topics: msbuild, net80, xaml
- Language: C#
- Homepage:
- Size: 2.62 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
My .NET
[![MIT License][license-shield]][license-url]
[](https://github.com/sandre58/myxaml/stargazers)
[](https://github.com/sandre58/myxaml/network/members)
[](https://github.com/sandre58/myxaml/issues)
[](https://github.com/sandre58/myxaml/commits/main)
[](https://github.com/sandre58/myxaml/graphs/contributors)
[](https://github.com/sandre58/myxaml)
Various tools for easing the development of XAML related applications.
As i only use WPF myself everything is focused on WPF, but things should work for other XAML dialects (at least in theory).
You can either use the commandline tool `MyNet.Xaml.Merger` or the MSBuild version `MyNet.Xaml.Merger.MSBuild` to make use of the provided functionalities.
[![Build][build-shield]][build-url]
[](https://codecov.io/gh/sandre58/myxaml)
[](#)
[](#)
[](#)
[](#)
## XAMLCombine
Combines multiple XAML files to one large file.
This is useful when you want to provide one `Generic.xaml` instead of multiple small XAML files.
Using one large XAML file not only makes it easier to consume, but can also drastically improving loading performance.
### Using the MSBuild-Task
```
Themes/Generic.xaml
```
The MSBuild-Task includes the items used for combining as pages during debug builds and removes them from pages during release builds.
This is done to reduce the binary size for release builds and still enable intellisense in debug builds for those XAML files.
**Remarks when using Rider**
To get intellisense in debug builds inside the XAML files and to prevent duplicate display of those files you have to define:
```
$(DefaultItemExcludes);Themes\Controls\*.xaml
```
### Using the executable
`XAMLTools` accepts the following commandline parameters for the `combine` verb:
- `-s "Path_To_Your_SourceFile"` => A file containing a new line separated list of files to combine (lines starting with # are skipped)
- `-t "Path_To_Your_Target_File.xaml"`
## XAMLColorSchemeGenerator
Generates color scheme XAML files while replacing certain parts of a template file.
For an example on how this tool works see the [generator input](src/MyNet.Xaml.Merger/XAMLColorSchemeGenerator/GeneratorParameters.json) and [template](src/MyNet.Xaml.Merger/XAMLColorSchemeGenerator/ColorScheme.Template.xaml) files.
### Using the MSBuild-Task
```
Themes\GeneratorParameters.json
Themes\ColorSchemes
```
### Using the executable
`XAMLTools` accepts the following commandline parameters for the `colorscheme` verb:
- `-p "Path_To_Your_GeneratorParameters.json"`
- `-t "Path_To_Your_ColorScheme.Template.xaml"`
- `-o "Path_To_Your_Output_Folder"`
## License
Copyright © Stéphane ANDRE.
Distributed under the MIT License. See [LICENSE](./LICENSE) for details.
[license-shield]: https://img.shields.io/github/license/sandre58/MyNet?style=for-the-badge
[license-url]: https://github.com/sandre58/MyNet/blob/main/LICENSE
[build-shield]: https://img.shields.io/github/actions/workflow/status/sandre58/MyNet/ci.yml?logo=github&label=CI
[build-url]: https://github.com/sandre58/MyNet/actions