mirror of
https://github.com/ckaczor/FloatingStatusWindow.git
synced 2026-01-13 17:22:47 -05:00
Make sure header goes away when locked
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
</Border>
|
||||
<htmlLabelControl:HtmlLabel Name="HtmlLabel"
|
||||
Foreground="White"
|
||||
Margin="0,20,0,0" />
|
||||
Margin="0,24,0,0" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</windows:SnappingWindow>
|
||||
|
||||
@@ -35,8 +35,10 @@ namespace FloatingStatusWindowLibrary
|
||||
|
||||
_windowChrome.CaptionHeight = (_locked ? 0 : WindowCaptionHeight);
|
||||
|
||||
HtmlLabel.Margin = new Thickness(0, (_locked ? 0 : WindowCaptionHeight), 0, 0);
|
||||
|
||||
// Show the header border if the window is unlocked
|
||||
HeaderBorder.Visibility = (_locked ? Visibility.Hidden : Visibility.Visible);
|
||||
HeaderBorder.Visibility = (_locked ? Visibility.Collapsed : Visibility.Visible);
|
||||
|
||||
// Show and enable the window border if the window is unlocked
|
||||
BorderFull.BorderBrush = (_locked ? Brushes.Transparent : SystemColors.ActiveCaptionBrush);
|
||||
|
||||
Reference in New Issue
Block a user