Skip to content

Commit 02e72b7

Browse files
committed
Default Preview: Use DockPanel instead of Grid
1 parent adc1fdb commit 02e72b7

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Flow.Launcher/DefaultPreview.xaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
xmlns:vm="clr-namespace:Flow.Launcher.ViewModel"
88
d:DataContext="{d:DesignInstance Type=vm:ResultViewModel}"
99
mc:Ignorable="d">
10-
<Grid
11-
Background="Transparent">
12-
<Grid.RowDefinitions>
13-
<RowDefinition Height="*" />
14-
<RowDefinition Height="Auto" />
15-
</Grid.RowDefinitions>
10+
<DockPanel Background="Transparent">
11+
<TextBlock
12+
DockPanel.Dock="Bottom"
13+
x:Name="PreviewSubTitle"
14+
Style="{DynamicResource PreviewItemSubTitleStyle}"
15+
Text="{Binding Result.SubTitle}" />
16+
1617
<StackPanel VerticalAlignment="Center">
1718
<TextBlock
1819
x:Name="PreviewGlyphIcon"
@@ -50,9 +51,5 @@
5051
TextAlignment="Center"
5152
TextWrapping="Wrap" />
5253
</StackPanel>
53-
<TextBlock Grid.Row="1"
54-
x:Name="PreviewSubTitle"
55-
Style="{DynamicResource PreviewItemSubTitleStyle}"
56-
Text="{Binding Result.SubTitle}" />
57-
</Grid>
54+
</DockPanel>
5855
</UserControl>

0 commit comments

Comments
 (0)