What exactly is "static" about a XAML static resource? -


In what situation is XAM resources stable?

With XAML resources, I mean access to things declared in the resource block and {StaticResource resource-name } syntax.

Does the page resources behave like they are still members on the page class? Or, could I have made many examples of one page class, would I have many examples of my resources?

Naming suggests that resources will be handled like static members, which means that many examples of one page will share a common share of resources.

Which behavior will appear?


Please note that the actual answer is in the comment on the accepted response. Important part is.

There is nothing with static type in C #.

Resource will be evaluated once using StaticResource, which is used for the first time that means time is not in the compilation.

Evaluation of a dynamic resource is required every time.

Also note that the compiler does not dynamic or stabilize the evaluation of all the resources.


Comments