Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 43ee1d9

Browse files
Merge pull request #406 from galich/master
Display full error message in Package Manager Display ToolTip over error message with full message content
2 parents d1a29c9 + 6f3a06a commit 43ee1d9

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

src/AddIns/Misc/PackageManagement/Project/Src/ManagePackagesView.xaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,26 @@
4747
Grid.Column="1"
4848
Margin="4, 4"
4949
TextTrimming="CharacterEllipsis"
50-
Text="{Binding Path=Message}"/>
50+
Text="{Binding Path=Message}">
51+
<TextBlock.Style>
52+
<Style TargetType="TextBlock">
53+
<Setter Property="ToolTip">
54+
<Setter.Value>
55+
<TextBlock
56+
Text="{Binding Message}"
57+
TextWrapping="WrapWithOverflow"
58+
TextTrimming="CharacterEllipsis"
59+
MaxWidth="400" />
60+
</Setter.Value>
61+
</Setter>
62+
<Style.Triggers>
63+
<DataTrigger Binding="{Binding Message}" Value="{x:Null}">
64+
<Setter Property="ToolTip" Value="{x:Null}" />
65+
</DataTrigger>
66+
</Style.Triggers>
67+
</Style>
68+
</TextBlock.Style>
69+
</TextBlock>
5170
<Button
5271
Grid.Column="2"
5372
Content="{core:Localize Global.CloseButtonText}"
@@ -76,4 +95,4 @@
7695
</TabItem>
7796
</TabControl>
7897
</DockPanel>
79-
</Window>
98+
</Window>

0 commit comments

Comments
 (0)