I'm currently trying to create sort of a XAML "Style collection" which we can use in all of our UI projects, to achieve consistency in our visuals.
I've tried creating a class library and added a ResourceDictionary with my style:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="ToggleSwitch" TargetType="{x:Type CheckBox}">
Some style in here
</Style>
</ResourceDictionary>
Enabled building the NuGet Package in the build options and added it to another UI project. I just can't quite get my head around about how to actually use the style in the UI project now.
Is this even a valid approach? Googling this specific intend didn't get me any reasonable results.