|
48 | 48 | </Setter.Value> |
49 | 49 | </Setter> |
50 | 50 | <Setter Property="ItemsSource" Value="{Binding Commands}" /> |
51 | | - <Setter Property="ItemContainerStyle" Value="{DynamicResource QuickFixCommandStyle}" /> |
| 51 | + <Setter Property="ItemContainerStyle" Value="{StaticResource QuickFixCommandStyle}" /> |
52 | 52 | </Style> |
53 | 53 |
|
54 | 54 | <Style x:Key="IconMargin" TargetType="Image"> |
|
71 | 71 | <RowDefinition Height="Auto" MinHeight="48"/> |
72 | 72 | </Grid.RowDefinitions> |
73 | 73 |
|
74 | | - <Border Grid.Row="0" Grid.RowSpan="3" Background="{DynamicResource ToolBarSubMenuBackgroundBrush}" /> |
| 74 | + <Border Grid.Row="0" Grid.RowSpan="3" Background="{StaticResource ToolBarSubMenuBackgroundBrush}" /> |
75 | 75 |
|
76 | 76 | <ToolBarTray Grid.Row="0" IsLocked="True"> |
77 | | - <ToolBar Style="{DynamicResource ToolBarWithOverflowOnlyShowingWhenNeededStyle}"> |
| 77 | + <ToolBar Style="{StaticResource ToolBarWithOverflowOnlyShowingWhenNeededStyle}"> |
78 | 78 | <ToolBar.Resources> |
79 | 79 | <codeInspections:InspectionFilterToBooleanConverter x:Key="InspectionTypeToBooleanConverter" /> |
80 | 80 | <codeInspections:InspectionResultGroupingToBooleanConverter x:Key="GroupingToBooleanConverter" /> |
|
100 | 100 | </ToolBar.Resources> |
101 | 101 |
|
102 | 102 | <Button Command="{Binding RefreshCommand}"> |
103 | | - <Image Source="{DynamicResource RefreshImage}" /> |
| 103 | + <Image Source="{StaticResource RefreshImage}" /> |
104 | 104 | </Button> |
105 | 105 |
|
106 | 106 | <Separator /> |
107 | 107 | <Menu Background="Transparent"> |
108 | 108 | <MenuItem VerticalAlignment="Center" |
109 | | - HeaderTemplate="{DynamicResource MenuItemHeaderDropdownIndicatorTemplate}" |
| 109 | + HeaderTemplate="{StaticResource MenuItemHeaderDropdownIndicatorTemplate}" |
110 | 110 | ItemsSource="{Binding QuickFixes}" |
111 | 111 | Background="Transparent" |
112 | 112 | ItemContainerStyle="{StaticResource QuickFixItemStyle}"> |
113 | 113 | <MenuItem.Icon> |
114 | | - <Image Source="{DynamicResource FixImage}" /> |
| 114 | + <Image Source="{StaticResource FixImage}" /> |
115 | 115 | </MenuItem.Icon> |
116 | 116 | <MenuItem.Header> |
117 | 117 | <TextBlock Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Fix}" /> |
|
123 | 123 |
|
124 | 124 | <Label Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingGrid_GroupingStyle}" VerticalContentAlignment="Center" /> |
125 | 125 |
|
126 | | - <ToggleButton Style="{DynamicResource ToolBarToggleStyle}" |
| 126 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
127 | 127 | ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingStyle_ByInspectionType}" |
128 | 128 | IsChecked="{Binding Path=Grouping, Converter={StaticResource GroupingToBooleanConverter}, ConverterParameter={x:Static codeInspections:InspectionResultGrouping.Type}}"> |
129 | | - <Image Source="{DynamicResource GroupByInspectionTypeImage}" /> |
| 129 | + <Image Source="{StaticResource GroupByInspectionTypeImage}" /> |
130 | 130 | </ToggleButton> |
131 | 131 |
|
132 | | - <ToggleButton Style="{DynamicResource ToolBarToggleStyle}" |
| 132 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
133 | 133 | ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingStyle_ByName}" |
134 | 134 | IsChecked="{Binding Path=Grouping, Converter={StaticResource GroupingToBooleanConverter}, ConverterParameter={x:Static codeInspections:InspectionResultGrouping.Name}}"> |
135 | | - <Image Source="{DynamicResource GroupByInspectionImage}" /> |
| 135 | + <Image Source="{StaticResource GroupByInspectionImage}" /> |
136 | 136 | </ToggleButton> |
137 | 137 |
|
138 | | - <ToggleButton Style="{DynamicResource ToolBarToggleStyle}" |
| 138 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
139 | 139 | ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingStyle_ByLocation}" |
140 | 140 | IsChecked="{Binding Path=Grouping, Converter={StaticResource GroupingToBooleanConverter}, ConverterParameter={x:Static codeInspections:InspectionResultGrouping.Location}}"> |
141 | | - <Image Source="{DynamicResource GroupByLocationImage}" /> |
| 141 | + <Image Source="{StaticResource GroupByLocationImage}" /> |
142 | 142 | </ToggleButton> |
143 | 143 |
|
144 | | - <ToggleButton Style="{DynamicResource ToolBarToggleStyle}" |
| 144 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
145 | 145 | ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingStyle_BySeverity}" |
146 | 146 | IsChecked="{Binding Path=Grouping, Converter={StaticResource GroupingToBooleanConverter}, ConverterParameter={x:Static codeInspections:InspectionResultGrouping.Severity}}"> |
147 | | - <Image Source="{DynamicResource GroupBySeverityImage}" /> |
| 147 | + <Image Source="{StaticResource GroupBySeverityImage}" /> |
148 | 148 | </ToggleButton> |
149 | 149 |
|
150 | 150 | <Separator /> |
151 | 151 |
|
152 | | - <Image Source="{DynamicResource FilterImage}" /> |
| 152 | + <Image Source="{StaticResource FilterImage}" /> |
153 | 153 |
|
154 | 154 | <Label Content="{Resx ResxName=Rubberduck.CodeAnalysis.CodeAnalysisUI, Key=GroupingGrid_Filter}" VerticalContentAlignment="Center" /> |
155 | 155 |
|
|
158 | 158 |
|
159 | 159 | <Label Content="{Resx ResxName=Rubberduck.Resources.Inspections.InspectionsUI ,Key=CodeInspection_SeverityFilter}" /> |
160 | 160 |
|
161 | | - <ToggleButton Style="{DynamicResource ToolBarToggleStyle}" |
| 161 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
162 | 162 | ToolTip="{Resx ResxName=Rubberduck.UI.Inspections.InspectionResultsUI, Key=FilterByError}" |
163 | 163 | IsChecked="{Binding Path=SelectedFilters, Converter={StaticResource InspectionTypeToBooleanConverter}, ConverterParameter={x:Static codeInspections:InspectionResultsFilter.Error}}"> |
164 | | - <Image Source="{DynamicResource FilterByErrorImage}" /> |
| 164 | + <Image Source="{StaticResource FilterByErrorImage}" /> |
165 | 165 | </ToggleButton> |
166 | 166 |
|
167 | | - <ToggleButton Style="{DynamicResource ToolBarToggleStyle}" |
| 167 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
168 | 168 | ToolTip="{Resx ResxName=Rubberduck.UI.Inspections.InspectionResultsUI, Key=FilterByWarning}" |
169 | 169 | IsChecked="{Binding Path=SelectedFilters, Converter={StaticResource InspectionTypeToBooleanConverter}, ConverterParameter={x:Static codeInspections:InspectionResultsFilter.Warning}}"> |
170 | | - <Image Source="{DynamicResource FilterByWarningImage}" /> |
| 170 | + <Image Source="{StaticResource FilterByWarningImage}" /> |
171 | 171 | </ToggleButton> |
172 | 172 |
|
173 | | - <ToggleButton Style="{DynamicResource ToolBarToggleStyle}" |
| 173 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
174 | 174 | ToolTip="{Resx ResxName=Rubberduck.UI.Inspections.InspectionResultsUI, Key=FilterBySuggestion}" |
175 | 175 | IsChecked="{Binding Path=SelectedFilters, Converter={StaticResource InspectionTypeToBooleanConverter}, ConverterParameter={x:Static codeInspections:InspectionResultsFilter.Suggestion}}"> |
176 | | - <Image Source="{DynamicResource FilterBySuggestionImage}" /> |
| 176 | + <Image Source="{StaticResource FilterBySuggestionImage}" /> |
177 | 177 | </ToggleButton> |
178 | 178 |
|
179 | | - <ToggleButton Style="{DynamicResource ToolBarToggleStyle}" |
| 179 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
180 | 180 | ToolTip="{Resx ResxName=Rubberduck.UI.Inspections.InspectionResultsUI, Key=FilterByHint}" |
181 | 181 | IsChecked="{Binding Path=SelectedFilters, Converter={StaticResource InspectionTypeToBooleanConverter}, ConverterParameter={x:Static codeInspections:InspectionResultsFilter.Hint}}"> |
182 | | - <Image Source="{DynamicResource FilterByHintImage}" /> |
| 182 | + <Image Source="{StaticResource FilterByHintImage}" /> |
183 | 183 | </ToggleButton> |
184 | 184 |
|
185 | 185 | <Separator /> |
186 | 186 |
|
187 | 187 | <Button Name="CollapseAll" Command="{Binding CollapseAllCommand}" Margin="2" |
188 | 188 | ToolTip="{Resx ResxName=Rubberduck.UI.Inspections.InspectionResultsUI, Key=CollapseAll}"> |
189 | | - <Image Source="{DynamicResource CollapseAllImage}" /> |
| 189 | + <Image Source="{StaticResource CollapseAllImage}" /> |
190 | 190 | </Button> |
191 | 191 |
|
192 | 192 | <Button Name="ExpandAll" Command="{Binding ExpandAllCommand}" Margin="2" |
193 | 193 | ToolTip="{Resx ResxName=Rubberduck.UI.Inspections.InspectionResultsUI, Key=ExpandAll}"> |
194 | | - <Image Source="{DynamicResource ExpandAllImage}" /> |
| 194 | + <Image Source="{StaticResource ExpandAllImage}" /> |
195 | 195 | </Button> |
196 | 196 |
|
197 | 197 | <Separator /> |
198 | 198 |
|
199 | 199 | <Button Command="{Binding CopyResultsCommand}"> |
200 | | - <Image Source="{DynamicResource CopyResultsImage}" /> |
| 200 | + <Image Source="{StaticResource CopyResultsImage}" /> |
201 | 201 | <Button.ToolTip> |
202 | 202 | <TextBlock Text="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_CopyToolTip}" /> |
203 | 203 | </Button.ToolTip> |
|
206 | 206 | <Separator /> |
207 | 207 |
|
208 | 208 | <Button ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Settings}" Command="{Binding OpenInspectionSettings}" BorderThickness="0" Background="Transparent"> |
209 | | - <Image Source="{DynamicResource SettingsImage}" /> |
| 209 | + <Image Source="{StaticResource SettingsImage}" /> |
210 | 210 | </Button> |
211 | 211 | </ToolBar> |
212 | 212 | </ToolBarTray> |
|
258 | 258 |
|
259 | 259 | <GridSplitter Grid.Row="2" Height="5" ShowsPreview="True" Cursor="SizeNS" HorizontalAlignment="Stretch"/> |
260 | 260 |
|
261 | | - <Border Grid.Row="3" BorderThickness="0,1,0,0" BorderBrush="{DynamicResource GrayBrush}"> |
| 261 | + <Border Grid.Row="3" BorderThickness="0,1,0,0" BorderBrush="{StaticResource GrayBrush}"> |
262 | 262 | <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> |
263 | | - <StackPanel Orientation="Vertical" MinHeight="48" Background="{DynamicResource BackgroundLightBrush}"> |
| 263 | + <StackPanel Orientation="Vertical" MinHeight="48" Background="{StaticResource BackgroundLightBrush}"> |
264 | 264 | <Grid Margin="4" HorizontalAlignment="Stretch"> |
265 | 265 | <Grid.ColumnDefinitions> |
266 | 266 | <ColumnDefinition Width="25" /> |
267 | 267 | <ColumnDefinition /> |
268 | 268 | </Grid.ColumnDefinitions> |
269 | | - <Image Style="{DynamicResource IconMargin}" VerticalAlignment="Top" Grid.Column="0" |
| 269 | + <Image Style="{StaticResource IconMargin}" VerticalAlignment="Top" Grid.Column="0" |
270 | 270 | Source="{Binding SelectedInspection.Severity, Converter={StaticResource SeverityIconConverter}}"/> |
271 | 271 | <TextBlock Grid.Column="1" Margin="4" Text="{Binding SelectedInspection.Description}" FontWeight="Bold" TextWrapping="WrapWithOverflow"/> |
272 | 272 | </Grid> |
|
0 commit comments