Ok, that question was really hard to ask in one line. Here's the deal. If I have this XAML:
<ResourceDictionary
x:Class="MyAssembly.MiscResources"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="MyBrush" Color="Purple" />
</ResourceDictionary>
Then I have this in some C#:
var dict = new MiscResources();
dict
gets created and seems to function normally, but it has 0 elements. Not that this is some kind of neccessary behavior, but I totally don't understand why it doesn't work. What piece of this am I missing?