Skip to content

Commit 2d68e69

Browse files
committed
revert 9494f3d
1 parent 5f4496e commit 2d68e69

File tree

11 files changed

+38
-38
lines changed

11 files changed

+38
-38
lines changed

Rubberduck.Core/UI/Refactorings/AnnotateDeclaration/AnnotateDeclarationView.xaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
<annotations:AnnotationArgumentType>Boolean</annotations:AnnotationArgumentType>
4444
<annotations:AnnotationArgumentType>Inspection</annotations:AnnotationArgumentType>
4545
</x:Array>
46-
<converters:SpecificValuesToVisibilityConverter SpecialValues="{DynamicResource NonDefaultInputArgumentTypes}" CollapseSpecialValues="True" x:Key="DefaultArgumentVisibilityConverter"/>
46+
<converters:SpecificValuesToVisibilityConverter SpecialValues="{StaticResource NonDefaultInputArgumentTypes}" CollapseSpecialValues="True" x:Key="DefaultArgumentVisibilityConverter"/>
4747
<converters:SpecificValueToVisibilityConverter SpecialValue="{x:Static annotations:AnnotationArgumentType.Boolean}" CollapseSpecialValue="False" x:Key="BooleanArgumentVisibilityConverter"/>
4848
<converters:SpecificValueToVisibilityConverter SpecialValue="{x:Static annotations:AnnotationArgumentType.Inspection}" CollapseSpecialValue="False" x:Key="InspectionArgumentVisibilityConverter"/>
4949
<DataTemplate DataType="{x:Type local:IAnnotationArgumentViewModel}" x:Key="ArgumentValueTemplate">
5050
<StackPanel VerticalAlignment="Center">
5151
<TextBox Text="{Binding ArgumentValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
52-
Style="{DynamicResource TextBoxErrorStyle}"
52+
Style="{StaticResource TextBoxErrorStyle}"
5353
HorizontalAlignment="Stretch"
5454
VerticalAlignment="Stretch"
5555
Visibility="{Binding ArgumentType, Converter={StaticResource DefaultArgumentVisibilityConverter}}">
@@ -82,7 +82,7 @@
8282
<RowDefinition Height="*" />
8383
<RowDefinition Height="40" />
8484
</Grid.RowDefinitions>
85-
<StackPanel Background="{DynamicResource BackgroundLightBrush}">
85+
<StackPanel Background="{StaticResource BackgroundLightBrush}">
8686
<Label Content="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=AnnotateDeclarationDialog_TitleText}" FontWeight="Bold"/>
8787
<TextBlock Text="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=AnnotateDeclarationDialog_Instructions}" Margin="5,0,0,10" TextWrapping="Wrap" />
8888
</StackPanel>
@@ -141,12 +141,12 @@
141141
Margin="5,0,5,5">
142142
<DataGrid.Columns>
143143
<DataGridTemplateColumn Header="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=AnnotateDeclarationDialog_ArgumentTypeHeader}"
144-
CellTemplateSelector="{DynamicResource AnnotationArgumentTypeCellDataTemplateSelector}"
145-
CellEditingTemplateSelector="{DynamicResource AnnotationArgumentTypeCellDataTemplateSelector}"
144+
CellTemplateSelector="{StaticResource AnnotationArgumentTypeCellDataTemplateSelector}"
145+
CellEditingTemplateSelector="{StaticResource AnnotationArgumentTypeCellDataTemplateSelector}"
146146
Width="Auto"/>
147147
<DataGridTemplateColumn Header="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=AnnotateDeclarationDialog_ArgumentValueHeader}"
148-
CellTemplate="{DynamicResource ArgumentValueTemplate}"
149-
CellEditingTemplate="{DynamicResource ArgumentValueTemplate}"
148+
CellTemplate="{StaticResource ArgumentValueTemplate}"
149+
CellEditingTemplate="{StaticResource ArgumentValueTemplate}"
150150
Width="*"/>
151151
</DataGrid.Columns>
152152
</DataGrid>

Rubberduck.Core/UI/Refactorings/EncapsulateField/EncapsulateFieldView.xaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<converters:BoolToVisibleVisibilityConverter x:Key="BoolToVisibleVisibility" />
1818
<BitmapImage x:Key="InvalidNameImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png" />
1919
<Style TargetType="Image" x:Key="InvalidNameIconStyle">
20-
<Setter Property="Source" Value="{DynamicResource InvalidNameImage}" />
20+
<Setter Property="Source" Value="{StaticResource InvalidNameImage}" />
2121
<Setter Property="Height" Value="16" />
2222
<Setter Property="Margin" Value="0,0,-8,0" />
2323
<Setter Property="HorizontalAlignment" Value="Right" />
@@ -36,7 +36,7 @@
3636
<RowDefinition Height="*" />
3737
<RowDefinition Height="40" />
3838
</Grid.RowDefinitions>
39-
<StackPanel Grid.Row="0" Background="{DynamicResource BackgroundLightBrush}">
39+
<StackPanel Grid.Row="0" Background="{StaticResource BackgroundLightBrush}">
4040
<Label Content="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=EncapsulateField_TitleText}"
4141
FontWeight="Bold" />
4242
<TextBlock Text="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=EncapsulateField_InstructionText}"
@@ -84,10 +84,10 @@
8484
<TextBlock Grid.Column="0" Margin="0,5"
8585
Text="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=ExtractInterface_MembersGroupBox}" />
8686
<StackPanel Grid.Column="1" Margin="5" Orientation="Horizontal">
87-
<Button Style="{DynamicResource CommandButtonStyle}" TabIndex="2"
87+
<Button Style="{StaticResource CommandButtonStyle}" TabIndex="2"
8888
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=SelectAll_Button}"
8989
Command="{Binding SelectAllCommand}" />
90-
<Button Style="{DynamicResource CommandButtonStyle}" TabIndex="3"
90+
<Button Style="{StaticResource CommandButtonStyle}" TabIndex="3"
9191
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=DeselectAll_Button}"
9292
Command="{Binding DeselectAllCommand}">
9393
</Button>
@@ -112,7 +112,7 @@
112112
Text="{Binding TargetDeclarationExpression, Mode=OneWay}"
113113
FontWeight="Bold">
114114
</TextBlock>
115-
<Image Style="{DynamicResource InvalidNameIconStyle}"
115+
<Image Style="{StaticResource InvalidNameIconStyle}"
116116
Visibility="{Binding Path=HasValidEncapsulationAttributes, Converter={StaticResource BoolToHiddenVisibility}}" />
117117
</StackPanel>
118118
</DataTemplate>
@@ -146,7 +146,7 @@
146146
VerticalAlignment="Center"
147147
VerticalContentAlignment="Center"
148148
Height="22" />
149-
<Image Grid.Row="1" Style="{DynamicResource InvalidNameIconStyle}"
149+
<Image Grid.Row="1" Style="{StaticResource InvalidNameIconStyle}"
150150
Visibility="{Binding Path=SelectionHasValidEncapsulationAttributes, Converter={StaticResource BoolToHiddenVisibility}}" />
151151
</Grid>
152152
<CheckBox IsChecked="{Binding Path=IsReadOnly, Mode=TwoWay}"
@@ -168,7 +168,7 @@
168168
<StackPanel Grid.Row="3" Margin="10,5" Orientation="Horizontal">
169169
<TextBlock Text="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=EncapsulateField_Preview}"
170170
FontSize="14" FontWeight="Bold" />
171-
<Image Style="{DynamicResource InvalidNameIconStyle}" Margin="0,-4"
171+
<Image Style="{StaticResource InvalidNameIconStyle}" Margin="0,-4"
172172
Visibility="{Binding Path=HasValidNames, Converter={StaticResource BoolToHiddenVisibility}}" />
173173
</StackPanel>
174174
<controls:BindableTextEditor Grid.Row="4" Margin="10" BorderThickness="1"
@@ -188,12 +188,12 @@
188188
</Grid.ColumnDefinitions>
189189
<Button Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=OK}"
190190
Grid.Column="0"
191-
Style="{DynamicResource CommandButtonStyle}"
191+
Style="{StaticResource CommandButtonStyle}"
192192
IsEnabled="{Binding IsValidInterfaceName}"
193193
Command="{Binding OkButtonCommand}" />
194194
<Button Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=CancelButtonText}"
195195
Grid.Column="1"
196-
Style="{DynamicResource CommandButtonStyle}"
196+
Style="{StaticResource CommandButtonStyle}"
197197
Command="{Binding CancelButtonCommand}"/>
198198
</Grid>
199199
</Grid>

Rubberduck.Core/UI/Refactorings/ExtractInterface/ExtractInterfaceView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<RowDefinition Height="40" />
2424
</Grid.RowDefinitions>
2525
<DockPanel Dock="Top"
26-
Background="{DynamicResource BackgroundLightBrush}">
26+
Background="{StaticResource BackgroundLightBrush}">
2727
<StackPanel>
2828
<Label Content="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=ExtractInterface_TitleLabel}"
2929
FontWeight="Bold" />
@@ -47,7 +47,7 @@
4747
VerticalContentAlignment="Center"
4848
Text="{Binding InterfaceName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
4949
<Image Grid.Row="1"
50-
Source="{DynamicResource InvalidInterfaceImage}"
50+
Source="{StaticResource InvalidInterfaceImage}"
5151
Height="16"
5252
Margin="0,-10,-8,0"
5353
HorizontalAlignment="Right"

Rubberduck.Core/UI/Refactorings/ExtractMethod/ExtractMethodView.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<ColumnDefinition Width="25" />
9595
<ColumnDefinition />
9696
</Grid.ColumnDefinitions>
97-
<Image Source="{DynamicResource WarningIcon}"
97+
<Image Source="{StaticResource WarningIcon}"
9898
Height="16"
9999
Margin="5"
100100
VerticalAlignment="Top" />

Rubberduck.Core/UI/Refactorings/MoveCloserToUsage/MoveCloserToUsageView.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<RowDefinition Height="*"/>
2020
<RowDefinition Height="40"/>
2121
</Grid.RowDefinitions>
22-
<StackPanel Background="{DynamicResource BackgroundLightBrush}">
22+
<StackPanel Background="{StaticResource BackgroundLightBrush}">
2323
<Label Content="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=MoveCloserToUsageDialog_TitleText}" FontWeight="Bold" />
2424
<TextBlock Text="{Binding Instructions}" Margin="5,0" />
2525
</StackPanel>

Rubberduck.Core/UI/Refactorings/MoveFolder/MoveMultipleFoldersView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<RowDefinition Height="*" />
2020
<RowDefinition Height="40" />
2121
</Grid.RowDefinitions>
22-
<StackPanel Background="{DynamicResource BackgroundLightBrush}">
22+
<StackPanel Background="{StaticResource BackgroundLightBrush}">
2323
<Label Content="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=MoveFoldersDialog_TitleText}" FontWeight="Bold" />
2424
<TextBlock Text="{Binding Instructions}" Margin="5,0" />
2525
</StackPanel>
@@ -33,7 +33,7 @@
3333
Margin="0,0,5,0" />
3434
<TextBox Name="MoveToFolderTextBox"
3535
Grid.Column="1"
36-
Style="{DynamicResource TextBoxErrorStyle}"
36+
Style="{StaticResource TextBoxErrorStyle}"
3737
Text="{Binding NewFolder, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
3838
Height="22"
3939
VerticalAlignment="Top"

Rubberduck.Core/UI/Refactorings/MoveToFolder/MoveMultipleToFolderView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<RowDefinition Height="*" />
2020
<RowDefinition Height="40" />
2121
</Grid.RowDefinitions>
22-
<StackPanel Background="{DynamicResource BackgroundLightBrush}">
22+
<StackPanel Background="{StaticResource BackgroundLightBrush}">
2323
<Label Content="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=MoveToFolderDialog_TitleText}" FontWeight="Bold" />
2424
<TextBlock Text="{Binding Instructions}" Margin="5,0" />
2525
</StackPanel>
@@ -33,7 +33,7 @@
3333
Margin="0,0,5,0" />
3434
<TextBox Name="MoveToFolderTextBox"
3535
Grid.Column="1"
36-
Style="{DynamicResource TextBoxErrorStyle}"
36+
Style="{StaticResource TextBoxErrorStyle}"
3737
Text="{Binding NewFolder, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
3838
Height="22"
3939
VerticalAlignment="Top"

Rubberduck.Core/UI/Refactorings/RemoveParameters/RemoveParametersView.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<RowDefinition Height="*" />
3232
<RowDefinition Height="40" />
3333
</Grid.RowDefinitions>
34-
<StackPanel Background="{DynamicResource BackgroundLightBrush}">
34+
<StackPanel Background="{StaticResource BackgroundLightBrush}">
3535
<Label Content="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=RemoveParamsDialog_TitleText}" FontWeight="Bold" />
3636
<TextBlock Text="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=RemoveParamsDialog_InstructionsLabelText}"
3737
Margin="5,0" />
@@ -84,7 +84,7 @@
8484
Command="{Binding RemoveParameterCommand}"
8585
CommandParameter="{Binding ElementName=ParameterGrid, Path=SelectedItem}">
8686
<StackPanel Orientation="Horizontal">
87-
<Image Source="{DynamicResource RemoveParameterImage}" />
87+
<Image Source="{StaticResource RemoveParameterImage}" />
8888
<TextBlock Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Remove}" />
8989
</StackPanel>
9090
</Button>
@@ -93,7 +93,7 @@
9393
Command="{Binding RestoreParameterCommand}"
9494
CommandParameter="{Binding ElementName=ParameterGrid, Path=SelectedItem}">
9595
<StackPanel Orientation="Horizontal">
96-
<Image Source="{DynamicResource RestoreParameterImage}" />
96+
<Image Source="{StaticResource RestoreParameterImage}" />
9797
<TextBlock Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Restore}" />
9898
</StackPanel>
9999
</Button>
@@ -102,8 +102,8 @@
102102
<Expander Grid.Row="1"
103103
Grid.ColumnSpan="2"
104104
IsExpanded="True"
105-
Background="{DynamicResource ExpanderBackgroundBrush}"
106-
BorderBrush="{DynamicResource ExpanderBorderBrush}"
105+
Background="{StaticResource ExpanderBackgroundBrush}"
106+
BorderBrush="{StaticResource ExpanderBorderBrush}"
107107
Margin="5,0,5,5">
108108
<Expander.Header>
109109
<Label FontWeight="SemiBold">

Rubberduck.Core/UI/Refactorings/Rename/RenameView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<RowDefinition Height="*" />
2020
<RowDefinition Height="40" />
2121
</Grid.RowDefinitions>
22-
<StackPanel Background="{DynamicResource BackgroundLightBrush}">
22+
<StackPanel Background="{StaticResource BackgroundLightBrush}">
2323
<Label Content="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=RenameDialog_TitleText}" FontWeight="Bold" />
2424
<TextBlock Text="{Binding Instructions}" Margin="5,0" />
2525
</StackPanel>
@@ -32,7 +32,7 @@
3232
VerticalAlignment="Top"
3333
Margin="0,0,5,0" />
3434
<TextBox Name="RenameTextBox"
35-
Style="{DynamicResource TextBoxErrorStyle}"
35+
Style="{StaticResource TextBoxErrorStyle}"
3636
Grid.Column="1"
3737
Text="{Binding NewName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
3838
Height="22"

Rubberduck.Core/UI/Refactorings/RenameFolder/RenameFolderView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<RowDefinition Height="*" />
2020
<RowDefinition Height="40" />
2121
</Grid.RowDefinitions>
22-
<StackPanel Background="{DynamicResource BackgroundLightBrush}">
22+
<StackPanel Background="{StaticResource BackgroundLightBrush}">
2323
<Label Content="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=RenameDialog_TitleText_Folder}" FontWeight="Bold" />
2424
<TextBlock Text="{Binding Instructions}" Margin="5,0" />
2525
</StackPanel>
@@ -33,7 +33,7 @@
3333
Margin="0,0,5,0" />
3434
<TextBox Name="RenameFolderTextBox"
3535
Grid.Column="1"
36-
Style="{DynamicResource TextBoxErrorStyle}"
36+
Style="{StaticResource TextBoxErrorStyle}"
3737
Text="{Binding NewFolderName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
3838
Height="22"
3939
VerticalAlignment="Center"

0 commit comments

Comments
 (0)