回答編集履歴
1
タイポ
test
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
``WrapperControl``の``DataContext``に設定されているVMが``MainViewModel``で保持している``WrapperViewModel``とは別ものだからでは?
|
2
2
|
|
3
|
+
```xml
|
3
4
|
<UserControl x:Class="ListBoxExperiment.WrapperControl"
|
4
5
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
5
6
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
@@ -9,9 +10,11 @@
|
|
9
10
|
mc:Ignorable="d"
|
10
11
|
d:DesignHeight="450" d:DesignWidth="800">
|
11
12
|
<!--
|
12
|
-
<UserControl.DataContext>
|
13
|
+
<UserControl.DataContext>
|
13
14
|
<local:WrapperViewModel/>
|
14
|
-
</UserControl.DataContext>
|
15
|
+
</UserControl.DataContext>
|
16
|
+
-->
|
15
17
|
<Grid>
|
16
18
|
<ListBox
|
19
|
+
```
|
17
20
|
|