This project is read-only.
1
Vote

Replace data grid relative source binding with element name binding

description

hi ,
i would suggest changing the binding in datagrid headers
from this :
<DataGridTemplateColumn.Header>
        <TextBlock Text="{Binding DataContext.DateText, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
</DataGridTemplateColumn.Header>
to this :
<DataGridTemplateColumn.Header>
              <TextBlock Text="{Binding DataContext.DateText, ElementName=Folder}" />
</DataGridTemplateColumn.Header>
this provides better handling for custom styles and preventing stupid Binding errors

comments