さて、私は元の質問のMSDNの記事に投稿されているコードを微調整しなければならなかったこれを機能させる方法を見つけました....
DataGridRow row = (DataGridRow)(KeywordsGrid.ItemContainerGenerator.ContainerFromItem(KeywordsGrid.SelectedItem));
// Getting the ContentPresenter of the row details
DataGridDetailsPresenter presenter = FindVisualChild<DataGridDetailsPresenter>(row);
// Finding Remove button from the DataTemplate that is set on that ContentPresenter
DataTemplate template = presenter.ContentTemplate;
Button button = (Button)template.FindName("RemoveItemButton", presenter);
KeywordsGridmy に関連付けられた変数ですDataGrid。への呼び出しでFindVisualChild、私は aDataGridDetailsPresenterの代わりにクラスを使用していることに注意してくださいContentPresenter(これが鍵でした...FindVisualChild行の詳細の 1 つに到達するまで、メソッドはすべてのコンテンツ プレゼンターを反復処理する必要がありました)。