This is quite obscure, I may just be missing something extremely simple.
Scenario 1
Lets say I create a gradient brush, like this in my
The markup you're working with doesn't go up far enough. You don't create a LinearGradientBrush, your first example: you just reference the resource. For example:
LinearGradientBrush
In your second example, I'd say that you want to declare the array as a resource:
And then you can use