Skip to content

Commit

Permalink
Forgot the proper Visibility binding for the Close button...
Browse files Browse the repository at this point in the history
  • Loading branch information
wokhan committed Jan 1, 2023
1 parent 20ba1fb commit 20f4a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wokhan.UI/Xaml/Controls/CustomWindowChrome.wpf.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</Style>
</Button.Style>
</Button>
<Button Command="{x:Static SystemCommands.CloseWindowCommand}" Content="&#xE106;">
<Button Visibility="{Binding CloseButtonVisibility}" Command="{x:Static SystemCommands.CloseWindowCommand}" Content="&#xE106;">
<Button.Template>
<ControlTemplate TargetType="Button">
<Border Name="Border" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
Expand Down

0 comments on commit 20f4a72

Please sign in to comment.