This question is locked. New answers and comments are not allowed.
I get an error:
in my xaml:
But I can't bind element from resource to texblock
After some investigation I figured out that it's because I can only user Resource.resx to controls listed at:
http://msdn.microsoft.com/en-us/library/dd882554(v=vs.95).aspx
So if I have right, is there other way to bind value do header of DataGridTemplateColumn?
columnHeader_PriorityColumn
I have overround for this by setting header in codebehind
But I need to have it in xaml.
Best regards
Cannot find a Resource with the Name/Key ResourceString [Line: 94 Position: 104]in my xaml:
<data:DataGridTemplateColumn x:Name="PriorityColumn" CanUserSort="True" Header="{Binding columnHeader_PriorityColumn, Source={StaticResource ResourceString}}">But I can't bind element from resource to texblock
After some investigation I figured out that it's because I can only user Resource.resx to controls listed at:
http://msdn.microsoft.com/en-us/library/dd882554(v=vs.95).aspx
So if I have right, is there other way to bind value do header of DataGridTemplateColumn?
columnHeader_PriorityColumn
I have overround for this by setting header in codebehind
private ResourceManager _rm = new ResourceManager("MyApp.Resources.MessagingStrings", System.Reflection.Assembly.GetExecutingAssembly());
grdArchive.Columns[2].Header = _rm.GetString("<span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: monospace; white-space: nowrap; ">columnHeader_PriorityColumn</span>");But I need to have it in xaml.
Best regards
