<DataGridTemplateColumn Header="{DynamicResource Operate}" Width="*">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
<my:FButton Style="{StaticResource FButton_LinkButton}"
VerticalAlignment="Center"
Content="{DynamicResource Edit}"
Width="100"
Height="40"
Command="{Binding DataContext.ModifyCommand,
RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid}}"></my:FButton>
<my:FButton VerticalAlignment="Center"
Style="{StaticResource FButton_LinkButton}"
Content="{DynamicResource Delete}"
Command="{Binding DataContext.DeleteCommand,
RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGrid}}"
Width="100"
Height="40"
Margin="10 0 0 0"></my:FButton>
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>