Life is Really Short, Have Your Life!!

ござ先輩の主に技術的なメモ

2015-12-08から1日間の記事一覧

DataGridのContextMenuでUIElementが取得できない問題

stackoverflow.com The ContextMenu isn't in the same part of the Visual Tree so that's why you can't use ElementName etc. to reference the DataGrid. You'll have to use PlacementTarget of the ContextMenu instead. WPFのXAMLのビジュアルツリー…