回答編集履歴

1

ていせい

2016/08/19 16:44

投稿

Tak1wa
Tak1wa

スコア4791

test CHANGED
@@ -4,6 +4,6 @@
4
4
 
5
5
 
6
6
 
7
- 今回のケースであれば、UserControl内部のDependencyPropertyUserControlのDependencyPropertyを直接バインドすれば良いだけです。
7
+ 今回のケースであれば、UserControl内部の子エレメントのDependencyPropertyUserControlのDependencyPropertyを直接バインドすれば良いだけです。
8
8
 
9
- その方法はDataContextを経由するのではなく、BindingのSourceでElementNameまたはAncestorTypeなどを使ってUserControl自身をバインディングソースにするす。
9
+ その方法はDataContextを経由するのではなく、BindingのSourceでElementNameまたはAncestorTypeなどを使ってUserControl自身をバインディングソースにして、BindingPathはUserControlのDependencyPropertyを指定します。