<DataGrid AutoGenerateColumns="False" Height="200" Margin="0,63,0,0" Name="dataGrid1" MouseDoubleClick="dataGrid1_MouseDoubleClick">
<DataGrid.Columns>
<DataGridTextColumn Header="Hospital Name" Width="100" Binding="{Binding hosp_name}"/>
<DataGridTextColumn Header="Order Number" Width="100" Binding="{Binding ordID}"/>
<DataGridTextColumn Header="Order Date" Width="*" Binding="{Binding placedDate}" />
</DataGrid.Columns>
</DataGrid>
嘿伙计们,我是 wpf 的新手,我怎样才能把它变成一个模板,这样我就可以在每次以编程方式创建一个新选项卡时渲染它?