Skip to content

Commit 10e4c8d

Browse files
committed
Adding some more ToolTip
1 parent 77ef364 commit 10e4c8d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/ToolWindows/GHActionsToolWindow.xaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</StackPanel>
9797
</HierarchicalDataTemplate>
9898
<DataTemplate x:Key="WorkflowItemTemplate">
99-
<TextBlock Text="{Binding Name}" Tag="{Binding Id}">
99+
<TextBlock Text="{Binding Name}" Tag="{Binding Id}" ToolTipService.ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}">
100100
<TextBlock.ContextMenu>
101101
<ContextMenu>
102102
<MenuItem Header="{x:Static resx:UIStrings.RUN_WORKFLOW}" Click="RunWorkflow_Click" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ContextMenu}}}">
@@ -109,7 +109,7 @@
109109
</TextBlock>
110110
</DataTemplate>
111111
<DataTemplate x:Key="EnvironmentItemTemplate">
112-
<TextBlock Text="{Binding Name}"/>
112+
<TextBlock Text="{Binding Name}" ToolTipService.ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
113113
</DataTemplate>
114114
</UserControl.Resources>
115115
<Grid VerticalAlignment="Stretch">
@@ -122,7 +122,7 @@
122122
<TextBlock HorizontalAlignment="Center" x:Name="MessageArea" />
123123
<ScrollViewer VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Margin="5,5,0,0" x:Name="ActionsInfoPanel">
124124
<StackPanel Orientation="Vertical">
125-
<Expander Header="{x:Static resx:UIStrings.HEADER_CURRENT_BRANCH}" x:Name="CurrentBranchExpander" FontWeight="Bold">
125+
<Expander Header="{x:Static resx:UIStrings.HEADER_CURRENT_BRANCH}" x:Name="CurrentBranchExpander" FontWeight="Bold" ToolTipService.ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Header}">
126126
<TreeView BorderThickness="0" FontWeight="Normal" PreviewMouseWheel="HandlePreviewMouseWheel" x:Name="tvCurrentBranch" ItemTemplate="{StaticResource TreeViewRunNodeDataTemplate}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
127127
<TreeView.Resources>
128128
<Style TargetType="{x:Type TreeViewItem}" BasedOn="{StaticResource {x:Static shell:VsResourceKeys.ThemedDialogTreeViewItemStyleKey}}">
@@ -131,22 +131,22 @@
131131
</TreeView.Resources>
132132
</TreeView>
133133
</Expander>
134-
<Expander Header="{x:Static resx:UIStrings.HEADER_WORKFLOWS}" FontWeight="Bold">
134+
<Expander Header="{x:Static resx:UIStrings.HEADER_WORKFLOWS}" FontWeight="Bold" ToolTipService.ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Header}">
135135
<TreeView BorderThickness="0" FontWeight="Normal" PreviewMouseWheel="HandlePreviewMouseWheel" x:Name="tvWorkflows" ItemTemplate="{StaticResource WorkflowItemTemplate}"/>
136136
</Expander>
137-
<Expander Header="{x:Static resx:UIStrings.HEADER_SECRETS}" FontWeight="Bold">
137+
<Expander Header="{x:Static resx:UIStrings.HEADER_SECRETS}" FontWeight="Bold" ToolTipService.ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Header}">
138138
<TreeView BorderThickness="0" PreviewMouseWheel="HandlePreviewMouseWheel" FontWeight="Normal">
139-
<TreeViewItem Header="{x:Static resx:UIStrings.HEADER_ENVIRONMENTS}" HeaderTemplate="{StaticResource EnvironmentHeaderTemplate}" x:Name="tvEnvironments" ItemTemplate="{StaticResource EnvironmentItemTemplate}" />
140-
<TreeViewItem Header="{x:Static resx:UIStrings.HEADER_SECRETS}" HeaderTemplate="{StaticResource SecretsHeaderTemplate}">
141-
<TreeViewItem x:Name="tvSecrets" HeaderTemplate="{StaticResource RepoSecretsHeaderTemplate}">
139+
<TreeViewItem ToolTipService.ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Header}" Header="{x:Static resx:UIStrings.HEADER_ENVIRONMENTS}" HeaderTemplate="{StaticResource EnvironmentHeaderTemplate}" x:Name="tvEnvironments" ItemTemplate="{StaticResource EnvironmentItemTemplate}" />
140+
<TreeViewItem ToolTipService.ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Header}" Header="{x:Static resx:UIStrings.HEADER_SECRETS}" HeaderTemplate="{StaticResource SecretsHeaderTemplate}">
141+
<TreeViewItem ToolTipService.ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Header}" x:Name="tvSecrets" HeaderTemplate="{StaticResource RepoSecretsHeaderTemplate}">
142142
<TreeViewItem.Resources>
143143
<Style TargetType="{x:Type TreeViewItem}" BasedOn="{StaticResource {x:Static shell:VsResourceKeys.ThemedDialogTreeViewItemStyleKey}}">
144144
<EventSetter Event="MouseDoubleClick" Handler="Secret_MouseDoubleClick"/>
145145
</Style>
146146
</TreeViewItem.Resources>
147147
<TreeViewItem.ItemTemplate>
148148
<DataTemplate>
149-
<TextBlock Text="{Binding}">
149+
<TextBlock Text="{Binding}" ToolTipService.ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}">
150150
<TextBlock.ContextMenu>
151151
<ContextMenu>
152152
<MenuItem Header="{x:Static resx:UIStrings.EDIT_SECRET}" Click="EditSecret_Click" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ContextMenu}}}">

0 commit comments

Comments
 (0)