|
215 | 215 | <Setter Property="BorderThickness" Value="1.5"/> |
216 | 216 | <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" /> |
217 | 217 | <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=OneWay}" /> |
218 | | - <Setter Property="Visibility" Value="{Binding Filtered, Mode=OneWay, Converter={DynamicResource BoolToHiddenVisibility}}" /> |
| 218 | + <Setter Property="Visibility" Value="{Binding Filtered, Mode=OneWay, Converter={StaticResource BoolToHiddenVisibility}}" /> |
219 | 219 | <Setter Property="HorizontalAlignment" Value="Left" /> |
220 | 220 | <EventSetter Event="MouseDoubleClick" Handler="TreeView_OnMouseDoubleClick" /> |
221 | 221 | <EventSetter Event="MouseRightButtonDown" Handler="TreeView_OnMouseRightButtonDown" /> |
|
287 | 287 | <local:CodeExplorerSortOrderBooleanConverter x:Key="CodeFlagConverter" /> |
288 | 288 | <local:CodeExplorerSortOrderBooleanConverter x:Key="TypeFlagConverter" /> |
289 | 289 | </Menu.Resources> |
290 | | - <MenuItem IsEnabled="{Binding IsBusy, Converter={DynamicResource NotBool}}" VerticalAlignment="Center" > |
| 290 | + <MenuItem IsEnabled="{Binding IsBusy, Converter={StaticResource NotBool}}" VerticalAlignment="Center" > |
291 | 291 | <MenuItem.Header> |
292 | 292 | <Image Style="{DynamicResource DisablingIconStyle}" Source="{DynamicResource SortImage}" /> |
293 | 293 | </MenuItem.Header> |
|
297 | 297 | <MenuItem.Items> |
298 | 298 | <MenuItem IsCheckable="True" Style="{DynamicResource MenuItemStyle}" VerticalAlignment="Center" |
299 | 299 | Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_SortStyle_ByName}" |
300 | | - IsChecked="{Binding Path=SortOrder, Converter={DynamicResource NameFlagConverter}, ConverterParameter={x:Static codeExplorer:CodeExplorerSortOrder.Name}}" /> |
| 300 | + IsChecked="{Binding Path=SortOrder, Converter={StaticResource NameFlagConverter}, ConverterParameter={x:Static codeExplorer:CodeExplorerSortOrder.Name}}" /> |
301 | 301 | <MenuItem IsCheckable="True" Style="{DynamicResource MenuItemStyle}" VerticalAlignment="Center" |
302 | 302 | Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_SortStyle_ByCodeOrder}" |
303 | | - IsChecked="{Binding Path=SortOrder, Converter={DynamicResource CodeFlagConverter}, ConverterParameter={x:Static codeExplorer:CodeExplorerSortOrder.CodeLine}}" /> |
| 303 | + IsChecked="{Binding Path=SortOrder, Converter={StaticResource CodeFlagConverter}, ConverterParameter={x:Static codeExplorer:CodeExplorerSortOrder.CodeLine}}" /> |
304 | 304 | <Separator /> |
305 | 305 | <MenuItem IsCheckable="True" Style="{DynamicResource MenuItemStyle}" VerticalAlignment="Center" |
306 | 306 | Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_SortStyle_ByType}" |
307 | | - IsChecked="{Binding Path=SortOrder, Converter={DynamicResource TypeFlagConverter}, ConverterParameter={x:Static codeExplorer:CodeExplorerSortOrder.DeclarationType}}" /> |
| 307 | + IsChecked="{Binding Path=SortOrder, Converter={StaticResource TypeFlagConverter}, ConverterParameter={x:Static codeExplorer:CodeExplorerSortOrder.DeclarationType}}" /> |
308 | 308 | </MenuItem.Items> |
309 | 309 | </MenuItem> |
310 | 310 | </Menu> |
|
434 | 434 | <MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_OpenDesigner}" |
435 | 435 | Command="{Binding OpenDesignerCommand}" |
436 | 436 | CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
437 | | - Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={DynamicResource BoolToVisibility}}"> |
| 437 | + Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibility}}"> |
438 | 438 | <MenuItem.Icon> |
439 | 439 | <Image Style="{DynamicResource ToolbarIconStyle}" Source="{DynamicResource OpenDesignerImage}" /> |
440 | 440 | </MenuItem.Icon> |
|
461 | 461 | <MenuItem.ItemContainerStyle> |
462 | 462 | <Style TargetType="MenuItem"> |
463 | 463 | <Setter Property="Command" Value="{Binding DataContext.AnnotateDeclarationCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" /> |
464 | | - <Setter Property="Header" Value="{Binding Path=., Converter={DynamicResource AnnotationToCodeString}}" /> |
| 464 | + <Setter Property="Header" Value="{Binding Path=., Converter={StaticResource AnnotationToCodeString}}" /> |
465 | 465 | <Setter Property="CommandParameter"> |
466 | 466 | <Setter.Value> |
467 | 467 | <MultiBinding Converter="{DynamicResource AnnotateDeclarationCommandParameterToTuple}"> |
|
609 | 609 | <StackPanel Orientation="Horizontal"> |
610 | 610 | <Grid> |
611 | 611 | <Image Style="{DynamicResource ToolbarIconStyle}" |
612 | | - ToolTip="{Binding Converter={DynamicResource DeclarationTypeNameConverter}}"> |
| 612 | + ToolTip="{Binding Converter={StaticResource DeclarationTypeNameConverter}}"> |
613 | 613 | <Image.Source> |
614 | 614 | <MultiBinding Converter="{DynamicResource NodeToIcon}"> |
615 | 615 | <MultiBinding.Bindings> |
|
621 | 621 | </MultiBinding> |
622 | 622 | </Image.Source> |
623 | 623 | </Image> |
624 | | - <Image Source="{Binding Declaration, Converter={DynamicResource AccessibilityToIcon}}" Style="{DynamicResource ToolbarIconStyle}" |
625 | | - ToolTip="{Binding Converter={DynamicResource DeclarationTypeNameConverter}}"/> |
| 624 | + <Image Source="{Binding Declaration, Converter={StaticResource AccessibilityToIcon}}" Style="{DynamicResource ToolbarIconStyle}" |
| 625 | + ToolTip="{Binding Converter={StaticResource DeclarationTypeNameConverter}}"/> |
626 | 626 | </Grid> |
627 | 627 | <TextBlock Style="{DynamicResource TreeViewItemStyleModified}" /> |
628 | 628 | </StackPanel> |
|
634 | 634 | </i:Interaction.Behaviors> |
635 | 635 | </TreeView> |
636 | 636 |
|
637 | | - <controls:EmptyUIRefresh Grid.Row="2" Visibility="{Binding Unparsed, Converter={DynamicResource BoolToVisibility}}" /> |
| 637 | + <controls:EmptyUIRefresh Grid.Row="2" Visibility="{Binding Unparsed, Converter={StaticResource BoolToVisibility}}" /> |
638 | 638 |
|
639 | | - <controls:BusyIndicator Grid.Row="2" Width="120" Height="120" Visibility="{Binding IsBusy, Converter={DynamicResource BoolToVisibility}}" /> |
| 639 | + <controls:BusyIndicator Grid.Row="2" Width="120" Height="120" Visibility="{Binding IsBusy, Converter={StaticResource BoolToVisibility}}" /> |
640 | 640 |
|
641 | 641 | <GridSplitter Grid.Row="3" Height="5" ShowsPreview="True" Cursor="SizeNS" HorizontalAlignment="Stretch"/> |
642 | 642 |
|
|
660 | 660 | </MultiBinding> |
661 | 661 | </Image.Source> |
662 | 662 | </Image> |
663 | | - <Image Grid.Column="0" Source="{Binding SelectedItem.Declaration, Converter={DynamicResource AccessibilityToIcon}}" Style="{DynamicResource ToolbarIconStyle}" /> |
| 663 | + <Image Grid.Column="0" Source="{Binding SelectedItem.Declaration, Converter={StaticResource AccessibilityToIcon}}" Style="{DynamicResource ToolbarIconStyle}" /> |
664 | 664 | <TextBox Style="{DynamicResource FooterTextBoxStyle}" Grid.Column="1" Text="{Binding SelectedItem.PanelTitle, Mode=OneWay}" FontWeight="Bold" /> |
665 | 665 | </Grid> |
666 | 666 | <TextBox Style="{DynamicResource FooterTextBoxStyle}" Text="{Binding SelectedItem.Description, Mode=OneWay}" /> |
667 | 667 | <WrapPanel> |
668 | 668 | <controls:LinkButton Margin="4" FontSize="{Binding FontSize, Mode=OneWay}" |
669 | 669 | Command="{Binding IndenterCommand}" CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
670 | 670 | Content="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Indent}" |
671 | | - Visibility="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled, Converter={DynamicResource BoolToVisibility}, Mode=OneWay}"/> |
| 671 | + Visibility="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled, Converter={StaticResource BoolToVisibility}, Mode=OneWay}"/> |
672 | 672 | <controls:LinkButton Margin="4" FontSize="{Binding FontSize, Mode=OneWay}" |
673 | 673 | Command="{Binding RenameCommand}" CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
674 | 674 | Content="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Rename}" |
675 | | - Visibility="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled, Converter={DynamicResource BoolToVisibility}, Mode=OneWay}"/> |
| 675 | + Visibility="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled, Converter={StaticResource BoolToVisibility}, Mode=OneWay}"/> |
676 | 676 | <controls:LinkButton Margin="4" FontSize="{Binding FontSize, Mode=OneWay}" |
677 | 677 | Command="{Binding FindAllReferencesCommand}" CommandParameter="{Binding SelectedItem, Mode=OneWay}" |
678 | 678 | Content="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_FindAllReferencesText}" |
679 | | - Visibility="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled, Converter={DynamicResource BoolToVisibility}, Mode=OneWay}"/> |
| 679 | + Visibility="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled, Converter={StaticResource BoolToVisibility}, Mode=OneWay}"/> |
680 | 680 | </WrapPanel> |
681 | 681 | </WrapPanel> |
682 | 682 | </ScrollViewer> |
|
0 commit comments