Suppose I have two classes:
public class LocalResources { public Color ForegroundColor { get; set; } } public static class OrganisationModule { public static LocalResources Resources = new LocalResources { ForegroundColor = Color.FromRgb(32, 32, 32) }; }
In XAML code, why can't I do this (assuming all xml namespaces exist)?
<TextBlock Foreground="{x:Static Modules:OrganisationModule.Resources.ForegroundColor}" />
When compiling, I get an error: Cannot find the type 'OrganisationModule.ColorManager'. Note that type names are case sensitive. Cannot find the type 'OrganisationModule.ColorManager'. Note that type names are case sensitive.
source share