|
17 | 17 | <BitmapImage x:Key="RefreshImage" UriSource="../../Resources/arrow-circle-double.png" />
|
18 | 18 | <BitmapImage x:Key="UndoImage" UriSource="../../Resources/arrow-circle-left.png" />
|
19 | 19 | <BitmapImage x:Key="PrintImage" UriSource="../../Resources/printer.png" />
|
20 |
| - |
| 20 | + |
21 | 21 | <BooleanToVisibilityConverter x:Key="BoolToVisibility"/>
|
22 | 22 | <converters:BoolToHiddenVisibilityConverter x:Key="BoolToHiddenVisibility" />
|
23 | 23 | <converters:InvertBoolValueConverter x:Key="InvertBoolValue" />
|
|
255 | 255 | </Trigger>
|
256 | 256 | </Style.Triggers>
|
257 | 257 | </Style>
|
258 |
| - |
| 258 | + |
259 | 259 | <LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" EndPoint="0,1" StartPoint="0,0">
|
260 | 260 | <GradientStop Color="#FFD9F4FF" Offset="0"/>
|
261 | 261 | <GradientStop Color="#FF9BDDFB" Offset="1"/>
|
|
271 | 271 | TargetType="{x:Type TreeViewItem}">
|
272 | 272 | <Setter Property="BorderThickness" Value="1.5"/>
|
273 | 273 | <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}"/>
|
| 274 | + <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" /> |
274 | 275 | <Setter Property="HorizontalAlignment" Value="Left" />
|
275 | 276 | <EventSetter Event="PreviewMouseRightButtonDown" Handler="OnPreviewMouseRightButtonDown" />
|
276 | 277 | <Style.Triggers>
|
|
291 | 292 | </Style>
|
292 | 293 | </Style.Resources>
|
293 | 294 | </Style>
|
294 |
| - |
| 295 | + |
295 | 296 | <Style x:Key="IconStyle" TargetType="Image">
|
296 | 297 | <Setter Property="Height" Value="16" />
|
297 | 298 | <Setter Property="Width" Value="16" />
|
298 | 299 | <Setter Property="Margin" Value="2,0,2,0" />
|
299 | 300 | <Setter Property="VerticalAlignment" Value="Top" />
|
300 | 301 | </Style>
|
301 |
| - |
| 302 | + |
302 | 303 | <Style x:Key="TreeViewItemStyle" TargetType="TextBlock">
|
303 | 304 | <Setter Property="Text" Value="{Binding Name}" />
|
| 305 | + <Setter Property="FontSize" Value="10" /> |
304 | 306 | <Setter Property="MaxWidth" Value="200" />
|
305 | 307 | <Setter Property="Margin" Value="2,0,2,0" />
|
306 | 308 | <Setter Property="VerticalAlignment" Value="Center" />
|
|
311 | 313 |
|
312 | 314 | <Style x:Key="TreeViewItemStyleWithSignatures" TargetType="TextBlock">
|
313 | 315 | <Setter Property="Text" Value="{Binding NameWithSignature}" />
|
| 316 | + <Setter Property="FontSize" Value="10" /> |
314 | 317 | <Setter Property="MaxWidth" Value="200" />
|
315 | 318 | <Setter Property="Margin" Value="2,0,2,0" />
|
316 | 319 | <Setter Property="VerticalAlignment" Value="Center" />
|
|
337 | 340 | <TextBlock Style="{StaticResource TreeViewItemStyleWithSignatures}" Visibility="{Binding ElementName=DisplaySignatures, Path=IsChecked, Converter={StaticResource BoolToVisibility}}" />
|
338 | 341 | </StackPanel>
|
339 | 342 | </HierarchicalDataTemplate>
|
340 |
| - |
| 343 | + |
341 | 344 | <HierarchicalDataTemplate x:Key="CodeExplorerTemplate"
|
342 | 345 | DataType="codeExplorer:CodeExplorerProjectViewModel"
|
343 | 346 | ItemsSource="{Binding Items}">
|
|
681 | 684 | Command="{Binding SetSelectionSortCommand}"
|
682 | 685 | CommandParameter="{Binding ElementName=SortBySelection, Path=IsChecked}"
|
683 | 686 | IsCheckable="True" />
|
684 |
| - |
| 687 | + |
685 | 688 | <Separator />
|
686 |
| - |
| 689 | + |
687 | 690 | <MenuItem Style="{DynamicResource MenuItemStyle}" VerticalAlignment="Center"
|
688 | 691 | Header="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SortStyle_ByType}"
|
689 | 692 | IsChecked="{Binding SortByType, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
695 | 698 | </ToggleButton>
|
696 | 699 |
|
697 | 700 | <Separator />
|
698 |
| - |
| 701 | + |
699 | 702 | <Button Command="{Binding OpenDesignerCommand}" CommandParameter="{Binding SelectedItem}">
|
700 | 703 | <Image Height="16" Source="../../Resources/Microsoft/PNG/VSProject_form.png" />
|
701 | 704 | <Button.ToolTip>
|
|
734 | 737 |
|
735 | 738 | <Border Grid.Row="3" BorderThickness="0,1,0,0" BorderBrush="DimGray">
|
736 | 739 |
|
737 |
| - <StackPanel Orientation="Vertical" MinHeight="48" Background="WhiteSmoke"> |
738 |
| - |
739 |
| - <Grid Margin="4" HorizontalAlignment="Stretch"> |
740 |
| - <Grid.ColumnDefinitions> |
741 |
| - <ColumnDefinition Width="20" /> |
742 |
| - <ColumnDefinition /> |
743 |
| - </Grid.ColumnDefinitions> |
744 |
| - <Image Style="{StaticResource IconStyle}" VerticalAlignment="Top" |
745 |
| - Source="{Binding SelectedItem.CollapsedIcon}" Grid.Column="0"/> |
746 |
| - <TextBlock Margin="4" Text="{Binding PanelTitle}" FontWeight="Bold" |
747 |
| - TextWrapping="WrapWithOverflow" Grid.Column="1"/> |
748 |
| - </Grid> |
749 |
| - |
750 |
| - <TextBlock Margin="4" Text="{Binding Description}" FontSize="10" TextWrapping="WrapWithOverflow"/> |
751 |
| - |
752 |
| - <WrapPanel> |
753 |
| - <controls:LinkButton Margin="4" |
754 |
| - Visibility="{Binding CanExecuteIndenterCommand, Converter={StaticResource BoolToVisibility}, UpdateSourceTrigger=PropertyChanged}" |
755 |
| - Command="{Binding IndenterCommand}" |
756 |
| - CommandParameter="{Binding SelectedItem}" |
757 |
| - Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SmartIndenterMenu}" /> |
758 |
| - <controls:LinkButton Margin="4" |
759 |
| - Visibility="{Binding CanExecuteRenameCommand, Converter={StaticResource BoolToVisibility}}" |
760 |
| - Command="{Binding RenameCommand}" |
761 |
| - CommandParameter="{Binding SelectedItem}" |
762 |
| - Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=Rename}" /> |
763 |
| - <controls:LinkButton Margin="4" |
764 |
| - Visibility="{Binding CanExecuteFindAllReferencesCommand, Converter={StaticResource BoolToVisibility}}" |
765 |
| - Command="{Binding FindAllReferencesCommand}" |
766 |
| - CommandParameter="{Binding SelectedItem}" |
767 |
| - Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=CodeExplorer_FindAllReferencesText}" /> |
768 |
| - </WrapPanel> |
769 |
| - </StackPanel> |
| 740 | + <ScrollViewer Background="WhiteSmoke" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> |
| 741 | + <StackPanel Orientation="Vertical" MinHeight="48" Background="WhiteSmoke"> |
| 742 | + |
| 743 | + <Grid Margin="4" HorizontalAlignment="Stretch"> |
| 744 | + <Grid.ColumnDefinitions> |
| 745 | + <ColumnDefinition Width="20" /> |
| 746 | + <ColumnDefinition /> |
| 747 | + </Grid.ColumnDefinitions> |
| 748 | + <Image Style="{StaticResource IconStyle}" |
| 749 | + Source="{Binding SelectedItem.CollapsedIcon}" Grid.Column="0"/> |
| 750 | + <TextBox IsReadOnly="True" Margin="4" Text="{Binding PanelTitle, Mode=OneWay}" FontWeight="Bold" |
| 751 | + TextWrapping="WrapWithOverflow" Grid.Column="1" FontSize="10" |
| 752 | + Background="WhiteSmoke" BorderThickness="0" Foreground="Black" /> |
| 753 | + </Grid> |
| 754 | + |
| 755 | + <TextBox IsReadOnly="True" Margin="4" Text="{Binding Description, Mode=OneWay}" |
| 756 | + BorderThickness="0" Background="WhiteSmoke" Foreground="Black" |
| 757 | + FontSize="10" TextWrapping="WrapWithOverflow" /> |
| 758 | + |
| 759 | + <WrapPanel> |
| 760 | + <controls:LinkButton Margin="4" |
| 761 | + Visibility="{Binding CanExecuteIndenterCommand, Converter={StaticResource BoolToVisibility}, UpdateSourceTrigger=PropertyChanged}" |
| 762 | + Command="{Binding IndenterCommand}" |
| 763 | + CommandParameter="{Binding SelectedItem}" |
| 764 | + Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SmartIndenterMenu}" /> |
| 765 | + <controls:LinkButton Margin="4" |
| 766 | + Visibility="{Binding CanExecuteRenameCommand, Converter={StaticResource BoolToVisibility}}" |
| 767 | + Command="{Binding RenameCommand}" |
| 768 | + CommandParameter="{Binding SelectedItem}" |
| 769 | + Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=Rename}" /> |
| 770 | + <controls:LinkButton Margin="4" |
| 771 | + Visibility="{Binding CanExecuteFindAllReferencesCommand, Converter={StaticResource BoolToVisibility}}" |
| 772 | + Command="{Binding FindAllReferencesCommand}" |
| 773 | + CommandParameter="{Binding SelectedItem}" |
| 774 | + Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=CodeExplorer_FindAllReferencesText}" /> |
| 775 | + </WrapPanel> |
| 776 | + </StackPanel> |
| 777 | + </ScrollViewer> |
770 | 778 | </Border>
|
771 | 779 | </Grid>
|
772 | 780 | </UserControl>
|
0 commit comments