I want to bind the titles of the Views to static text's from our Infrastructure's Titles Class. Adding a symbol prefix (e.g "Ref") and registering it's namespace and use it in the View What I want is to achieve something similar to this :
Part1:
xmlns:Ref="clr-namespace:Xz.Infrastructure;assembly=Xz.Infrastructure"
Part2:
<TextBlock Text="{Binding Titles.Title1}" />
Hopefully a way more similar to :
<TextBlock Text="{Binding Ref:Titles.Title1}" />
Please correct me.
Part3:
namespace Xz.Infrastructure
{
public class Titles
{
public static string Title1 = "Title1";
public static string RgnContent = "RgnContent";
}
}
- Our Infrastructure isn't defined as a module, it's just an assembly.
- The Project is using Unity.