Skip to content

Commit 2dc8bb3

Browse files
committed
- Add Automatically Hide Plugin Info Border by SettingControl Height
1 parent 0d11b79 commit 2dc8bb3

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Flow.Launcher/SettingWindow.xaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,23 @@
655655
</StackPanel>
656656

657657
<StackPanel>
658-
<Border Background="White" Padding="14 14 14 14"
658+
<Border Background="White" Padding="14 0 14 0"
659659
BorderThickness="0 1 0 0" BorderBrush="#e6e6e6"
660660
VerticalAlignment="Center" HorizontalAlignment="Stretch"
661661
MaxHeight="480">
662-
<ContentControl
662+
<Border.Style>
663+
<Style TargetType="{x:Type Border}">
664+
<Setter Property="Visibility" Value="Visible" />
665+
<Style.Triggers>
666+
<DataTrigger Binding="{Binding ElementName=SettingControl, Path=ActualHeight}" Value="0">
667+
<Setter Property="Visibility" Value="Collapsed" />
668+
</DataTrigger>
669+
</Style.Triggers>
670+
</Style>
671+
</Border.Style>
672+
<ContentControl x:Name="SettingControl"
663673
Content="{Binding SettingControl}"
664-
Padding="0" Margin="0" VerticalAlignment="Stretch"
674+
Padding="0" Margin="0 14 0 14" VerticalAlignment="Stretch"
665675
MaxWidth="750" />
666676
</Border>
667677
</StackPanel>

0 commit comments

Comments
 (0)