mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Add Automatically Hide Plugin Info Border by SettingControl Height
This commit is contained in:
parent
0d11b79ee3
commit
2dc8bb386e
1 changed files with 13 additions and 3 deletions
|
|
@ -655,13 +655,23 @@
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<Border Background="White" Padding="14 14 14 14"
|
<Border Background="White" Padding="14 0 14 0"
|
||||||
BorderThickness="0 1 0 0" BorderBrush="#e6e6e6"
|
BorderThickness="0 1 0 0" BorderBrush="#e6e6e6"
|
||||||
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||||||
MaxHeight="480">
|
MaxHeight="480">
|
||||||
<ContentControl
|
<Border.Style>
|
||||||
|
<Style TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="Visibility" Value="Visible" />
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding ElementName=SettingControl, Path=ActualHeight}" Value="0">
|
||||||
|
<Setter Property="Visibility" Value="Collapsed" />
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</Border.Style>
|
||||||
|
<ContentControl x:Name="SettingControl"
|
||||||
Content="{Binding SettingControl}"
|
Content="{Binding SettingControl}"
|
||||||
Padding="0" Margin="0" VerticalAlignment="Stretch"
|
Padding="0" Margin="0 14 0 14" VerticalAlignment="Stretch"
|
||||||
MaxWidth="750" />
|
MaxWidth="750" />
|
||||||
</Border>
|
</Border>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue