标签: wpf xaml wpf-controls c#-3.0
我尝试填充datagrid标头,如下所示,但它不起作用。
<DataGridTextColumn Header="{Binding DataContext.propertyObj.Header,UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"/>
如何让它发挥作用?