|
141 | 141 | Height="28" |
142 | 142 | Text="{Binding Description, Mode=TwoWay}"/> |
143 | 143 |
|
144 | | - <!-- BoolValue is needed by CheckBox/PathSelector --> |
145 | | - <TextBlock Margin="0,12,0,0" |
146 | | - Text="{DynamicResource Text.ConfigureCustomActionControls.DefaultValue}" |
147 | | - IsVisible="{Binding Type, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static m:CustomActionControlType.CheckBox}}"/> |
148 | | - <TextBlock Margin="0,12,0,0" |
149 | | - Text="{DynamicResource Text.ConfigureCustomActionControls.IsFolder}" |
150 | | - IsVisible="{Binding Type, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static m:CustomActionControlType.PathSelector}}"/> |
151 | | - <CheckBox Height="28" |
152 | | - Margin="0,4,0,0" |
153 | | - IsChecked="{Binding BoolValue, Mode=TwoWay}"> |
154 | | - <CheckBox.IsVisible> |
155 | | - <MultiBinding Converter="{x:Static BoolConverters.Or}"> |
156 | | - <Binding Path="Type" Converter="{x:Static ObjectConverters.Equal}" ConverterParameter="{x:Static m:CustomActionControlType.CheckBox}}"/> |
157 | | - <Binding Path="Type" Converter="{x:Static ObjectConverters.Equal}" ConverterParameter="{x:Static m:CustomActionControlType.PathSelector}}"/> |
158 | | - </MultiBinding> |
159 | | - </CheckBox.IsVisible> |
160 | | - </CheckBox> |
161 | | - |
162 | 144 | <!-- StringValue --> |
163 | 145 | <TextBlock Margin="0,12,0,0" |
164 | 146 | Text="{DynamicResource Text.ConfigureCustomActionControls.CheckedValue}" |
|
203 | 185 | <Binding Path="Type" Converter="{x:Static ObjectConverters.Equal}" ConverterParameter="{x:Static m:CustomActionControlType.PathSelector}"/> |
204 | 186 | </MultiBinding> |
205 | 187 | </TextBlock.IsVisible> |
206 | | - </TextBlock> |
| 188 | + </TextBlock> |
| 189 | + |
| 190 | + <!-- BoolValue is needed by CheckBox/PathSelector --> |
| 191 | + <Grid Margin="0,8,0,0" ColumnDefinitions="Auto,*"> |
| 192 | + <Grid.IsVisible> |
| 193 | + <MultiBinding Converter="{x:Static BoolConverters.Or}"> |
| 194 | + <Binding Path="Type" Converter="{x:Static ObjectConverters.Equal}" ConverterParameter="{x:Static m:CustomActionControlType.CheckBox}}"/> |
| 195 | + <Binding Path="Type" Converter="{x:Static ObjectConverters.Equal}" ConverterParameter="{x:Static m:CustomActionControlType.PathSelector}}"/> |
| 196 | + </MultiBinding> |
| 197 | + </Grid.IsVisible> |
| 198 | + <TextBlock Grid.Column="0" |
| 199 | + Text="{DynamicResource Text.ConfigureCustomActionControls.DefaultValue}" |
| 200 | + IsVisible="{Binding Type, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static m:CustomActionControlType.CheckBox}}"/> |
| 201 | + <TextBlock Grid.Column="0" |
| 202 | + Text="{DynamicResource Text.ConfigureCustomActionControls.IsFolder}" |
| 203 | + IsVisible="{Binding Type, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static m:CustomActionControlType.PathSelector}}"/> |
| 204 | + <CheckBox Grid.Column="1" |
| 205 | + Margin="8,0,0,0" |
| 206 | + Height="28" |
| 207 | + IsChecked="{Binding BoolValue, Mode=TwoWay}"/> |
| 208 | + </Grid> |
207 | 209 | </StackPanel> |
208 | 210 | </DataTemplate> |
209 | 211 | </ContentControl.DataTemplates> |
|
0 commit comments