Supplemantary to the answer by @FelicePollano - for code indentation to work I put this as a separate 'answer'.
If you happen to have your original constant defined in a .cs-file you can avoid duplicating its value in <Application.Resources>
by this:
<x:Static x:Key="MyConstString" Member="local:Constants.MyString" />
For the reference local
above to work you need to include the namespace xmlns:local="clr-namespace:Utils"
in the tag <Application>
.
The cs-class could then look like this:
namespace Utils
{
public class Constants
{
public const string MyString = "My string";
}
}
An example on usage in the xaml-code could then be:
<TextBlock Text="{StaticResource MyConstString}" />