Enable header action button hit-testing in window chrome

This commit is contained in:
Meik
2026-03-05 11:22:17 +01:00
parent 072e4a97e8
commit 9e4dab398f
2 changed files with 31 additions and 5 deletions

View File

@@ -353,18 +353,21 @@
HorizontalAlignment="Left"
Margin="14,14,0,0"
x:Name="Logo" />
<Border HorizontalAlignment="Right"
<Border x:Name="HeaderActionGroup"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="0,12,12,0"
Panel.ZIndex="500"
CornerRadius="10"
BorderThickness="1"
BorderBrush="{DynamicResource panelBorderColor}"
Background="{DynamicResource headerControlBackgroundColor}">
Background="{DynamicResource headerControlBackgroundColor}"
shell:WindowChrome.IsHitTestVisibleInChrome="True">
<StackPanel Orientation="Horizontal">
<Button x:Name="RefreshIcon"
Style="{StaticResource HeaderGroupButtonStyle}"
ToolTip="Refresh"
shell:WindowChrome.IsHitTestVisibleInChrome="True"
Click="OnRefreshButtonClick">
<Image Source="{DynamicResource nav_appbar_refresh}"
Tag="ICO"
@@ -377,6 +380,7 @@
<Button x:Name="Close_Text"
Style="{StaticResource HeaderGroupButtonStyle}"
ToolTip="{x:Static resx:Resources.close}"
shell:WindowChrome.IsHitTestVisibleInChrome="True"
Click="OnMinimizeButtonClick">
<TextBlock Text="X"
FontSize="15"