mirror of
https://github.com/ckaczor/FloatingStatusWindow.git
synced 2026-01-14 01:25:36 -05:00
Make sure header goes away when locked
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user