DataGrid模板中控件的宽度怎样与列的宽度绑定
<DataGrid Grid.Row="1" x:Name="dg_TimeTable" ColumnHeaderStyle="{DynamicResource DataGridColumnHeaderStyle}"
Style="{DynamicResource DataGridStyle}" RowStyle="{DynamicResource DataGridRowStyle}" CellStyle="{DynamicResource DataGridCellStyle}" AlternationCount="2" Margin="5" IsReadOnly="True">
<DataGrid.Columns>
<DataGridTemplateColumn Header="名 称" Width="*">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate >
<TextBlock Text="{Binding Name}" Tag="{Binding IsEdit}" TextAlignment="Center" Width="{Binding}" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"></TextBlock>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="GlobalID" Binding="{Binding GlobalID}" Visibility="Hidden"></DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
<DataGridTemplateColumn Header="名 称" Width="*" x:Name="dataGridTemplateColumn1">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate >
<TextBlock Text="{Binding Name}" Tag="{Binding IsEdit}" TextAlignment="Center" Width="{Binding ActualWidth, ElementName=dataGridTemplateColumn1, Mode=OneWay}" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"></TextBlock>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>