Ideally I would like to place some properties in the App class for my WPF application to share between windows, dialogs, controls, etc. Is it trivial to reference those properties from other WPF components or should I just make them static for easier access?
Share
In my opinion, the biggest issue in placing properties at the App class is that your code will be tightly coupled. Besides, the properties may be outside the scope of the App class.
If you don’t care about patterns, i.e., your application do not tend to grow in complexity, using properties in the App class may be a quick and easy solution. But if you do this in an already complex (or growing) code, it may lead you to a lot of headache.
If by making the properties static you mean put them in some class and reference it in another class, you get a less tightly coupled code, but not loosely enough.