|
52 | 52 |
|
53 | 53 | <!-- Search Control and tool buttons as overlay --> |
54 | 54 | <!-- The tool buttons replace the global context menu --> |
55 | | - <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" |
56 | | - Visibility="{Binding DataContext.IsGraphToolPanelVisible, ElementName=CodeExplorationControl ,Converter={StaticResource BooleanToVisibilityConverter}}" |
57 | | - Margin="0 0 40 0" DataContext="{Binding GraphViewModel}"> |
58 | | - |
59 | | - <Button Command="{Binding CompleteToContainingTypesCommand}" |
60 | | - ToolTip="{x:Static resources:Strings.CompleteToTypes}" |
61 | | - Style="{StaticResource ToggleButtonStyle}"> |
62 | | - <Image Source="/Resources/puzzle.png" Width="24" Height="24" /> |
63 | | - </Button> |
64 | | - |
65 | | - <Button Command="{Binding CompleteRelationshipsCommand}" |
66 | | - ToolTip="{x:Static resources:Strings.CompleteRelationships}" |
67 | | - Style="{StaticResource ToggleButtonStyle}"> |
68 | | - <Image Source="/Resources/synchronize_32.png" Width="24" Height="24" /> |
69 | | - </Button> |
70 | | - |
71 | | - <Button Command="{Binding ClearAllFlagsCommand}" |
72 | | - ToolTip="{x:Static resources:Strings.ClearAllFlags}" |
73 | | - Style="{StaticResource ToggleButtonStyle}"> |
74 | | - <Image Source="/Resources/flag-empty_32.png" Width="24" Height="24" /> |
75 | | - </Button> |
76 | | - |
77 | | - <Button Command="{Binding FocusOnSelectedCommand}" |
78 | | - ToolTip="{x:Static resources:Strings.SelectedFocus}" |
79 | | - Style="{StaticResource ToggleButtonStyle}"> |
80 | | - <Image Source="/Resources/focus_32.png" Width="24" Height="24" /> |
81 | | - </Button> |
82 | | - |
83 | | - <Button Command="{Binding ExpandEverythingCommand}" |
84 | | - ToolTip="{x:Static resources:Strings.ExpandEverything}" |
85 | | - Style="{StaticResource ToggleButtonStyle}"> |
86 | | - <Image Source="/Resources/expand-all_32.png" Width="24" Height="24" /> |
87 | | - </Button> |
88 | | - |
89 | | - <Button Command="{Binding CollapseEverythingCommand}" |
90 | | - ToolTip="{x:Static resources:Strings.CollapseEverything}" |
91 | | - Style="{StaticResource ToggleButtonStyle}"> |
92 | | - <Image Source="/Resources/collapse-all_32.png" Width="24" Height="24" /> |
93 | | - </Button> |
94 | | - |
95 | | - <Button Command="{Binding AddParentsCommand}" |
96 | | - ToolTip="{x:Static resources:Strings.AddParents_Tooltip}" |
97 | | - Style="{StaticResource ToggleButtonStyle}"> |
98 | | - <Image Source="/Resources/add-parent_32.png" Width="24" Height="24" /> |
99 | | - </Button> |
100 | | - |
101 | | - <Button Command="{Binding RemoveSelectedCommand}" |
102 | | - ToolTip="{x:Static resources:Strings.SelectedRemoveWithChildren}" |
103 | | - Style="{StaticResource ToggleButtonStyle}"> |
104 | | - <Image Source="/Resources/trash-can_32.png" Width="24" Height="24" /> |
105 | | - </Button> |
106 | | - |
107 | | - </StackPanel> |
| 55 | + <Border |
| 56 | + HorizontalAlignment="Right" VerticalAlignment="Top" |
| 57 | + Visibility="{Binding DataContext.IsGraphToolPanelVisible, ElementName=CodeExplorationControl ,Converter={StaticResource BooleanToVisibilityConverter}}" |
| 58 | + Margin="0 0 40 0" DataContext="{Binding GraphViewModel}" |
| 59 | + CornerRadius="6"> |
| 60 | + |
| 61 | + <StackPanel Orientation="Horizontal"> |
| 62 | + |
| 63 | + <Button Command="{Binding CompleteToContainingTypesCommand}" |
| 64 | + ToolTip="{x:Static resources:Strings.CompleteToTypes}" |
| 65 | + Style="{StaticResource ToolbarButtonStyle}"> |
| 66 | + <Image Source="/Resources/puzzle.png" Width="24" Height="24" /> |
| 67 | + </Button> |
| 68 | + |
| 69 | + <Button Command="{Binding CompleteRelationshipsCommand}" |
| 70 | + ToolTip="{x:Static resources:Strings.CompleteRelationships}" |
| 71 | + Style="{StaticResource ToolbarButtonStyle}"> |
| 72 | + <Image Source="/Resources/synchronize_32.png" Width="24" Height="24" /> |
| 73 | + </Button> |
| 74 | + |
| 75 | + <Button Command="{Binding ClearAllFlagsCommand}" |
| 76 | + ToolTip="{x:Static resources:Strings.ClearAllFlags}" |
| 77 | + Style="{StaticResource ToolbarButtonStyle}"> |
| 78 | + <Image Source="/Resources/flag-empty_32.png" Width="24" Height="24" /> |
| 79 | + </Button> |
| 80 | + |
| 81 | + <Button Command="{Binding FocusOnSelectedCommand}" |
| 82 | + ToolTip="{x:Static resources:Strings.SelectedFocus}" |
| 83 | + Style="{StaticResource ToolbarButtonStyle}"> |
| 84 | + <Image Source="/Resources/focus_32.png" Width="24" Height="24" /> |
| 85 | + </Button> |
| 86 | + |
| 87 | + <Button Command="{Binding ExpandEverythingCommand}" |
| 88 | + ToolTip="{x:Static resources:Strings.ExpandEverything}" |
| 89 | + Style="{StaticResource ToolbarButtonStyle}"> |
| 90 | + <Image Source="/Resources/expand-all_32.png" Width="24" Height="24" /> |
| 91 | + </Button> |
| 92 | + |
| 93 | + <Button Command="{Binding CollapseEverythingCommand}" |
| 94 | + ToolTip="{x:Static resources:Strings.CollapseEverything}" |
| 95 | + Style="{StaticResource ToolbarButtonStyle}"> |
| 96 | + <Image Source="/Resources/collapse-all_32.png" Width="24" Height="24" /> |
| 97 | + </Button> |
| 98 | + |
| 99 | + <Button Command="{Binding AddParentsCommand}" |
| 100 | + ToolTip="{x:Static resources:Strings.AddParents_Tooltip}" |
| 101 | + Style="{StaticResource ToolbarButtonStyle}"> |
| 102 | + <Image Source="/Resources/add-parent_32.png" Width="24" Height="24" /> |
| 103 | + </Button> |
| 104 | + |
| 105 | + <Button Command="{Binding RemoveSelectedCommand}" |
| 106 | + ToolTip="{x:Static resources:Strings.SelectedRemoveWithChildren}" |
| 107 | + Style="{StaticResource ToolbarButtonStyle}"> |
| 108 | + <Image Source="/Resources/trash-can_32.png" Width="24" Height="24" /> |
| 109 | + </Button> |
| 110 | + |
| 111 | + </StackPanel> |
| 112 | + </Border> |
108 | 113 | <local:GraphSearchControl x:Name="SearchControl" |
109 | 114 | HorizontalAlignment="Right" |
110 | 115 | VerticalAlignment="Top" |
|
0 commit comments