回答編集履歴

1

コードの間違いがありました

2017/07/13 09:00

投稿

hihijiji
hihijiji

スコア4150

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ViewModel をバインドしているのが Window の場合は、
4
4
 
5
- `"{Binding Source={RelativeSource FindAncestor, AncestorType=Window}, Path=DataContext.ButtonClickCommand}"`
5
+ `"{Binding RelativeSource={RelativeSource AncestorType=Window, AncestorLevel=1}}"`
6
6
 
7
7
  のように指定する。
8
8