Replacement for x:static RegionNames.Name

Topics: Prism v4 - WPF 4
Apr 17, 2012 at 7:30 PM

This is actually for Silverlight 5, Prism 4.1

In WPF we use this everywhere:

prism:RegionManager.RegionName="{x:Static framework:RegionNames.ShellUserSessionRegion}"

There is apparently no Silverlight version of x:Static.

How else do you implement the RegionNames.Name lookup design?

Searching so far has turned up some workaround, but they are old.  I'm hoping for something that is a best practice or directly supported by Silverlight/Prism.


Apr 17, 2012 at 9:52 PM


In my opinion you could benefit of the new feature of Silverlight 5 which provides the possibility to create custom markup extensions. This way you could create a x:Static extension like in WPF to get the value of a static property in a static class.

You might find the following blog post useful, which portrays a possible implementation for this scenario:

Also, you could find more information in the following link at MSDN:

I hope you find this handy,

Agustin Adami