Skip to content

Commit 52b753c

Browse files
Switch StackPanel with DockPanel in search panel GridViewColumns to make TextBlock.TextTrimming have an effect.
1 parent 61f82d0 commit 52b753c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ILSpy/Search/SearchPane.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,30 +58,30 @@
5858
<controls:SortableGridViewColumn Header="{x:Static properties:Resources.Name}" SortBy="Name">
5959
<controls:SortableGridViewColumn.CellTemplate>
6060
<DataTemplate DataType="{x:Type spyX:SearchResult}">
61-
<StackPanel Orientation="Horizontal">
61+
<DockPanel>
6262
<Image Height="16" Margin="0,0,4,0" Width="16" Source="{Binding Image}" />
6363
<TextBlock Text="{Binding Name}" ToolTip="{Binding ToolTip}" TextTrimming="CharacterEllipsis" />
64-
</StackPanel>
64+
</DockPanel>
6565
</DataTemplate>
6666
</controls:SortableGridViewColumn.CellTemplate>
6767
</controls:SortableGridViewColumn>
6868
<controls:SortableGridViewColumn Header="{x:Static properties:Resources.Location}" SortBy="Location">
6969
<controls:SortableGridViewColumn.CellTemplate>
7070
<DataTemplate DataType="{x:Type spyX:SearchResult}">
71-
<StackPanel Orientation="Horizontal">
71+
<DockPanel>
7272
<Image Height="16" Margin="4,0,4,0" Width="16" Source="{Binding LocationImage}" />
7373
<TextBlock Text="{Binding Location}" ToolTip="{Binding Location}" TextTrimming="CharacterEllipsis" />
74-
</StackPanel>
74+
</DockPanel>
7575
</DataTemplate>
7676
</controls:SortableGridViewColumn.CellTemplate>
7777
</controls:SortableGridViewColumn>
7878
<controls:SortableGridViewColumn Header="{x:Static properties:Resources.Assembly}" SortBy="Assembly">
7979
<controls:SortableGridViewColumn.CellTemplate>
8080
<DataTemplate DataType="{x:Type spyX:SearchResult}">
81-
<StackPanel Orientation="Horizontal">
81+
<DockPanel>
8282
<Image Height="16" Margin="4,0,4,0" Width="16" Source="{Binding AssemblyImage}" />
8383
<TextBlock Text="{Binding Assembly}" ToolTip="{Binding Assembly}" TextTrimming="CharacterEllipsis" />
84-
</StackPanel>
84+
</DockPanel>
8585
</DataTemplate>
8686
</controls:SortableGridViewColumn.CellTemplate>
8787
</controls:SortableGridViewColumn>

0 commit comments

Comments
 (0)