Hi,
I am still new to WPF and I am trying to get the hang of control templates, styles, triggers, etc. I am also trying to manage my code so things don't get messy and everything is maintainable in terms of styling elements.
I looking for some clarity on what a resource dictionary is as I feel I am using it in the wrong way. I am trying to work in a "modular" fashion by styling elements like buttons and tabs etc, in resource dictionaries, so I am not styling anything inline in my MainWindow.xaml.
Can all my code for my elements live inside resource dictionaries (a button resource dictionary, a menu resource dictionary) instead if being inside my MainWindow.xaml?
By this I mean can I have a control template and style of a button in a resource dictionary and then reference that resource dictionary in my MainWindow.xaml when I create a button with the button tags?