Make sure header goes away when locked

This commit is contained in:
2017-03-26 19:14:40 -04:00
parent 97cd3ce9dd
commit 64403b9917
2 changed files with 4 additions and 2 deletions

View File

@@ -46,7 +46,7 @@
</Border> </Border>
<htmlLabelControl:HtmlLabel Name="HtmlLabel" <htmlLabelControl:HtmlLabel Name="HtmlLabel"
Foreground="White" Foreground="White"
Margin="0,20,0,0" /> Margin="0,24,0,0" />
</Grid> </Grid>
</Border> </Border>
</windows:SnappingWindow> </windows:SnappingWindow>

View File

@@ -35,8 +35,10 @@ namespace FloatingStatusWindowLibrary
_windowChrome.CaptionHeight = (_locked ? 0 : WindowCaptionHeight); _windowChrome.CaptionHeight = (_locked ? 0 : WindowCaptionHeight);
HtmlLabel.Margin = new Thickness(0, (_locked ? 0 : WindowCaptionHeight), 0, 0);
// Show the header border if the window is unlocked // 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 // Show and enable the window border if the window is unlocked
BorderFull.BorderBrush = (_locked ? Brushes.Transparent : SystemColors.ActiveCaptionBrush); BorderFull.BorderBrush = (_locked ? Brushes.Transparent : SystemColors.ActiveCaptionBrush);