I'm starting to work with WPF because of its similarity to HTML. I noticed through my searches that when I use an expression like this Style="{StaticResource MeuStyle}"
it looks a lot like a class definition that I have in html ( class="MeuStyle"
).
Is it possible to merge several styles into one StaticResource so that it is applied to the Style of that component? My intention is to work similar to the bootstrap, where I define 2 classes on a button like this:
In HTML
<button class="btn">MeuButton</button>
<button class="btn btn-success">MeuButton</button>
<button class="btn btn-error">MeuButton</button>
In WPF ~ (what I need)
<Button Content="Button" Style="{StaticResource btn}"/>
<Button Content="Button" Style="{StaticResource btn, btnSuccess}"/>
<Button Content="Button" Style="{StaticResource btn, btnError}"/>