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

@@ -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);