mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add MaxHeight & MaxWidth for preview image
This commit is contained in:
parent
9f8ff12155
commit
f1628eec66
1 changed files with 3 additions and 12 deletions
|
|
@ -21,19 +21,10 @@
|
|||
</Grid.RowDefinitions>
|
||||
<Image
|
||||
Grid.Row="0"
|
||||
MaxWidth="96"
|
||||
MaxHeight="96"
|
||||
Margin="5 12 8 0"
|
||||
Source="{Binding PreviewImage, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}">
|
||||
<Image.Style>
|
||||
<Style TargetType="Image">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding UseBigThumbnail}" Value="False">
|
||||
<Setter Property="MaxWidth" Value="96" />
|
||||
<Setter Property="MaxHeight" Value="96" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Image.Style>
|
||||
</Image>
|
||||
Source="{Binding PreviewImage, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}" />
|
||||
<Grid Grid.Row="1">
|
||||
<TextBlock
|
||||
Margin="5 6 5 16"
|
||||
|
|
|
|||
Loading…
Reference in a new issue