|
131 | 131 | <ComboBoxItem Content="TextBox"/>
|
132 | 132 | <ComboBoxItem Content="Path Selector"/>
|
133 | 133 | <ComboBoxItem Content="CheckBox"/>
|
| 134 | + <ComboBoxItem Content="ComboBox"/> |
134 | 135 | </ComboBox>
|
135 | 136 |
|
136 | 137 | <!-- Description -->
|
|
140 | 141 | Height="28"
|
141 | 142 | Text="{Binding Description, Mode=TwoWay}"/>
|
142 | 143 | <TextBlock Margin="0,2,0,0"
|
| 144 | + Classes="small" |
143 | 145 | TextWrapping="Wrap"
|
144 | 146 | Text="{DynamicResource Text.ConfigureCustomActionControls.Description.Tip}"
|
145 | 147 | Foreground="{DynamicResource Brush.FG2}"/>
|
146 | 148 |
|
147 |
| - <!-- Default value --> |
148 |
| - <TextBlock Margin="0,12,0,0" Text="{DynamicResource Text.ConfigureCustomActionControls.DefaultValue}"/> |
| 149 | + <!-- Default value/Options --> |
| 150 | + <TextBlock Margin="0,12,0,0" |
| 151 | + Text="{DynamicResource Text.ConfigureCustomActionControls.DefaultValue}" |
| 152 | + IsVisible="{Binding Type, Converter={x:Static ObjectConverters.NotEqual}, ConverterParameter={x:Static m:CustomActionControlType.ComboBox}}"/> |
| 153 | + <TextBlock Margin="0,12,0,0" |
| 154 | + Text="{DynamicResource Text.ConfigureCustomActionControls.Options}" |
| 155 | + IsVisible="{Binding Type, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static m:CustomActionControlType.ComboBox}}"/> |
149 | 156 | <TextBox Margin="0,4,0,0"
|
150 | 157 | CornerRadius="3"
|
151 | 158 | Height="28"
|
152 | 159 | Text="{Binding StringValue, Mode=TwoWay}"
|
153 | 160 | IsVisible="{Binding Type, Converter={x:Static ObjectConverters.NotEqual}, ConverterParameter={x:Static m:CustomActionControlType.CheckBox}}"/>
|
154 | 161 | <TextBlock Margin="0,2,0,0"
|
| 162 | + Classes="small" |
155 | 163 | TextWrapping="Wrap"
|
156 | 164 | Text="{DynamicResource Text.Configure.CustomAction.Arguments.Tip}"
|
157 | 165 | Foreground="{DynamicResource Brush.FG2}"
|
158 |
| - IsVisible="{Binding Type, Converter={x:Static ObjectConverters.NotEqual}, ConverterParameter={x:Static m:CustomActionControlType.CheckBox}}"/> |
| 166 | + IsVisible="{Binding Type, Converter={x:Static ObjectConverters.NotEqual}, ConverterParameter={x:Static m:CustomActionControlType.CheckBox}}"> |
| 167 | + <TextBlock.IsVisible> |
| 168 | + <MultiBinding Converter="{x:Static BoolConverters.Or}"> |
| 169 | + <Binding Path="Type" Converter="{x:Static ObjectConverters.Equal}" ConverterParameter="{x:Static m:CustomActionControlType.TextBox}"/> |
| 170 | + <Binding Path="Type" Converter="{x:Static ObjectConverters.Equal}" ConverterParameter="{x:Static m:CustomActionControlType.PathSelector}"/> |
| 171 | + </MultiBinding> |
| 172 | + </TextBlock.IsVisible> |
| 173 | + </TextBlock> |
| 174 | + <TextBlock Margin="0,2,0,0" |
| 175 | + Classes="small" |
| 176 | + TextWrapping="Wrap" |
| 177 | + Text="{DynamicResource Text.ConfigureCustomActionControls.Options.Tip}" |
| 178 | + Foreground="{DynamicResource Brush.FG2}" |
| 179 | + IsVisible="{Binding Type, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static m:CustomActionControlType.ComboBox}}"> |
| 180 | + </TextBlock> |
159 | 181 | <CheckBox Height="28"
|
160 | 182 | Margin="0,4,0,0"
|
161 | 183 | IsChecked="{Binding BoolValue, Mode=TwoWay}"
|
|
180 | 202 | Text="{Binding StringValue, Mode=TwoWay}"
|
181 | 203 | IsVisible="{Binding Type, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static m:CustomActionControlType.CheckBox}}"/>
|
182 | 204 | <TextBlock Margin="0,2,0,0"
|
| 205 | + Classes="small" |
183 | 206 | TextWrapping="Wrap"
|
184 | 207 | Text="{DynamicResource Text.ConfigureCustomActionControls.CheckedValue.Tip}"
|
185 | 208 | IsVisible="{Binding Type, Converter={x:Static ObjectConverters.Equal}, ConverterParameter={x:Static m:CustomActionControlType.CheckBox}}"
|
|
0 commit comments