Как изменить среду выполнения содержимого заголовка DatagridTemplateColumn в Silverlight?

Я определил DataGridTemplateColumn.HeaderStyle как ресурс.

<UserControl.Resources>
 <Style x:Key="DataGridHeaderStyleProductName" TargetType="sdk:DataGridColumnHeader">
  <Setter Property="ContentTemplate">
   <Setter.Value>
    <DataTemplate>
     <StackPanel Orientation="Horizontal">
      <TextBlock x:Name="ProductName" Text="ProductName" />
     </StackPanel>
    </DataTemplate>
   </Setter.Value>
  </Setter>
 </Style>
</UserControl.Resources>

Мне нужно изменить текст среды выполнения TextBlock (ProductName). Как я могу доработать?


person Solid IT    schedule 28.10.2011    source источник
comment
см. здесь: stackoverflow.com/questions/151682/   -  person RobSiklos    schedule 28.10.2011