Let\'s say I have a class defined something like the below:
namespace MyProject.MyConstants
{
public class Constants
{
public class Group1Constan
Try this one:
<MenuItem Header="{x:Static constants:Constants+Group1Constants.DoIt}">
I used "+" instead of "." to reference the nested class. Not sure if you'll run into problems doing this though.
For textbox label text field constants in XAML I use:
Text="{x:Static local:[myConstantNamesClass].[name of constant string in your constant class]}"
and then need to build the solution to make it accessible.
(Note that the local: XAML namespace would be set to reference the CLR namespace of the Constants class at the very top of the XAML file.)