Say I have a bunch of local constants in my code behind that I want to use as headers, for example:
const string TYPE_HEADER = "Type";
const string LOCATION_ HEADER = "Location";
etc.
Is there any way I can bind the headers of my DataGridColumns to these like events are bound to local methods, for example:
<data:DataGridTextColumn Header="{Binding TYPE_HEADER}" />
Can this be done? Perhaps by using some dynamic ResourceDictionary or something?