回答編集履歴
2
意図通りかつチェックの反転解消
test
CHANGED
@@ -32,14 +32,20 @@
|
|
32
32
|
<ItemsControl x:Name="Area1" VerticalAlignment="Top" ItemsSource="{Binding Collection}">
|
33
33
|
<ItemsControl.ItemTemplate>
|
34
34
|
<DataTemplate>
|
35
|
+
<CheckBox
|
36
|
+
VerticalContentAlignment="Center"
|
37
|
+
Command="{Binding DataContext.CheckChangedCommand, ElementName=Area1}"
|
38
|
+
CommandParameter="{Binding}"
|
39
|
+
FlowDirection="RightToLeft"
|
40
|
+
IsChecked="{Binding IsSet}">
|
41
|
+
<!-- [XAML Checkbox Label Alignment - Visual Studio Feedback](https://developercommunity.visualstudio.com/t/xaml-checkbox-label-alignment/850708) -->
|
42
|
+
<CheckBox.Resources>
|
35
|
-
<St
|
43
|
+
<Style TargetType="Path">
|
44
|
+
<Setter Property="FlowDirection" Value="LeftToRight" />
|
45
|
+
</Style>
|
46
|
+
</CheckBox.Resources>
|
36
47
|
<TextBlock Text="{Binding BitNumber}" />
|
37
|
-
<CheckBox
|
38
|
-
VerticalAlignment="Center"
|
39
|
-
Command="{Binding DataContext.CheckChangedCommand, ElementName=Area1}"
|
40
|
-
CommandParameter="{Binding}"
|
41
|
-
IsChecked="{Binding IsSet}" />
|
42
|
-
</
|
48
|
+
</CheckBox>
|
43
49
|
</DataTemplate>
|
44
50
|
</ItemsControl.ItemTemplate>
|
45
51
|
<ItemsControl.ItemsPanel>
|
1
コロン忘れ
test
CHANGED
@@ -101,7 +101,7 @@
|
|
101
101
|
Area = area;
|
102
102
|
}
|
103
103
|
|
104
|
-
public override string ToString() => $"Area:{Area}, BitNumber{BitNumber}, IsSet{IsSet}";
|
104
|
+
public override string ToString() => $"Area:{Area}, BitNumber:{BitNumber}, IsSet:{IsSet}";
|
105
105
|
}
|
106
106
|
}
|
107
107
|
```
|