|
40 | 40 | </UserControl.Resources> |
41 | 41 | <ScrollViewer Margin="0,0,10,0"> |
42 | 42 | <StackPanel Margin="5"> |
43 | | - <Label Background="{StaticResource BackgroundDarkBrush}" |
| 43 | + <Label Background="{DynamicResource BackgroundDarkBrush}" |
44 | 44 | HorizontalContentAlignment="Stretch" |
45 | 45 | Margin="0,0,0,5"> |
46 | 46 | <Label.Style> |
|
52 | 52 | </Style.Resources> |
53 | 53 | </Style> |
54 | 54 | </Label.Style> |
55 | | - <DockPanel Background="{StaticResource BackgroundDarkBrush}" FlowDirection="LeftToRight"> |
| 55 | + <DockPanel Background="{DynamicResource BackgroundDarkBrush}" FlowDirection="LeftToRight"> |
56 | 56 | <StackPanel Orientation="Horizontal" DockPanel.Dock="Left"> |
57 | | - <Label Foreground="{StaticResource CaptionLightBrush}" FontWeight="SemiBold"> |
| 57 | + <Label Foreground="{DynamicResource CaptionLightBrush}" FontWeight="SemiBold"> |
58 | 58 | <Resx ResxName="Rubberduck.Resources.Settings.SettingsUI" Key="PageHeader_IndenterSettings"/> |
59 | 59 | </Label> |
60 | 60 | </StackPanel> |
|
94 | 94 | </Grid.RowDefinitions> |
95 | 95 | <Expander Grid.Row="0" |
96 | 96 | IsExpanded="False" |
97 | | - Background="{StaticResource ExpanderBackgroundBrush}" |
98 | | - BorderBrush="{StaticResource ExpanderBorderBrush}" |
| 97 | + Background="{DynamicResource ExpanderBackgroundBrush}" |
| 98 | + BorderBrush="{DynamicResource ExpanderBorderBrush}" |
99 | 99 | Margin="0,0,0,3"> |
100 | 100 | <Expander.Header> |
101 | 101 | <Label FontWeight="SemiBold" |
|
162 | 162 | </Expander> |
163 | 163 | <Expander Grid.Row="1" |
164 | 164 | IsExpanded="False" |
165 | | - Background="{StaticResource ExpanderBackgroundBrush}" |
166 | | - BorderBrush="{StaticResource ExpanderBorderBrush}" |
| 165 | + Background="{DynamicResource ExpanderBackgroundBrush}" |
| 166 | + BorderBrush="{DynamicResource ExpanderBorderBrush}" |
167 | 167 | Margin="0,0,0,3"> |
168 | 168 | <Expander.Header> |
169 | 169 | <Label FontWeight="SemiBold" |
|
212 | 212 | <ComboBox Margin="5,0,0,5" |
213 | 213 | Width="210" |
214 | 214 | HorizontalAlignment="Left" |
215 | | - ItemsSource="{Binding Source={StaticResource CommentStyles},Converter={StaticResource LocalizedEndOfLineCommentStyles},UpdateSourceTrigger=PropertyChanged}" |
216 | | - SelectedItem="{Binding EndOfLineCommentStyle,Mode=TwoWay,Converter={StaticResource EndOfLineCommentStyleTextToEnumValue},UpdateSourceTrigger=PropertyChanged}"/> |
| 215 | + ItemsSource="{Binding Source={DynamicResource CommentStyles},Converter={DynamicResource LocalizedEndOfLineCommentStyles},UpdateSourceTrigger=PropertyChanged}" |
| 216 | + SelectedItem="{Binding EndOfLineCommentStyle,Mode=TwoWay,Converter={DynamicResource EndOfLineCommentStyleTextToEnumValue},UpdateSourceTrigger=PropertyChanged}"/> |
217 | 217 | <controls:NumberPicker Margin="0,-4,0,0" |
218 | 218 | HorizontalAlignment="Left" |
219 | 219 | MinNumber="0" |
220 | 220 | MaxNumber="{x:Static smartIndenter:IndenterSettings.MaximumEndOfLineCommentColumnSpaceAlignment}" |
221 | 221 | NumValue="{Binding EndOfLineCommentColumnSpaceAlignment,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
222 | | - Visibility="{Binding EndOfLineCommentStyle,Converter={StaticResource EndOfLineCommentStyleToVisibility}}"/> |
| 222 | + Visibility="{Binding EndOfLineCommentStyle,Converter={DynamicResource EndOfLineCommentStyleToVisibility}}"/> |
223 | 223 | </StackPanel> |
224 | 224 | </StackPanel> |
225 | 225 | </StackPanel> |
226 | 226 | </Expander> |
227 | 227 | <Expander Grid.Row="2" |
228 | 228 | IsExpanded="False" |
229 | | - Background="{StaticResource ExpanderBackgroundBrush}" |
230 | | - BorderBrush="{StaticResource ExpanderBorderBrush}" |
| 229 | + Background="{DynamicResource ExpanderBackgroundBrush}" |
| 230 | + BorderBrush="{DynamicResource ExpanderBorderBrush}" |
231 | 231 | Margin="0,0,0,3"> |
232 | 232 | <Expander.Header> |
233 | 233 | <Label FontWeight="SemiBold" |
|
275 | 275 | Content="{Resx ResxName=Rubberduck.UI.Settings.IndenterSettingsUI, Key=EmptyLineHeading}" /> |
276 | 276 | <ComboBox Margin="5,0,0,5" |
277 | 277 | HorizontalAlignment="Left" |
278 | | - ItemsSource="{Binding Source={StaticResource EmptyLineOptions},Converter={StaticResource LocalizedEmptyLineHandlers},UpdateSourceTrigger=PropertyChanged}" |
279 | | - SelectedItem="{Binding EmptyLineHandlingMethod,Mode=TwoWay,Converter={StaticResource EmptyLineHandlingValueTextToEnumValue},UpdateSourceTrigger=PropertyChanged}"/> |
| 278 | + ItemsSource="{Binding Source={DynamicResource EmptyLineOptions},Converter={DynamicResource LocalizedEmptyLineHandlers},UpdateSourceTrigger=PropertyChanged}" |
| 279 | + SelectedItem="{Binding EmptyLineHandlingMethod,Mode=TwoWay,Converter={DynamicResource EmptyLineHandlingValueTextToEnumValue},UpdateSourceTrigger=PropertyChanged}"/> |
280 | 280 | </StackPanel> |
281 | 281 | </Expander> |
282 | 282 | <Expander Grid.Row="3" |
283 | 283 | IsExpanded="False" |
284 | | - Background="{StaticResource ExpanderBackgroundBrush}" |
285 | | - BorderBrush="{StaticResource ExpanderBorderBrush}" |
| 284 | + Background="{DynamicResource ExpanderBackgroundBrush}" |
| 285 | + BorderBrush="{DynamicResource ExpanderBorderBrush}" |
286 | 286 | Margin="0,0,0,3"> |
287 | 287 | <Expander.Header> |
288 | 288 | <Label FontWeight="SemiBold" |
|
321 | 321 | </Expander> |
322 | 322 | <Expander Grid.Row="4" |
323 | 323 | IsExpanded="True" |
324 | | - Background="{StaticResource ExpanderBackgroundBrush}" |
325 | | - BorderBrush="{StaticResource ExpanderBorderBrush}" |
| 324 | + Background="{DynamicResource ExpanderBackgroundBrush}" |
| 325 | + BorderBrush="{DynamicResource ExpanderBorderBrush}" |
326 | 326 | Margin="0,0,0,3"> |
327 | 327 | <Expander.Header> |
328 | 328 | <Label FontWeight="SemiBold" |
|
0 commit comments