Browse Source

ELKbug504:修复主界面顶部按钮点击范围受限问题

huangping 1 month ago
parent
commit
4d931195c3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Furnace/FurnaceUI/MainView.xaml

+ 2 - 2
Furnace/FurnaceUI/MainView.xaml

@@ -294,7 +294,7 @@
                                             </i:EventTrigger>
                                         </i:Interaction.Triggers>
                                     </Button>-->
-                                    <Button Grid.Column="1" x:Name="_faBtn" Style="{DynamicResource TopButton}" Content="{Binding FAButtonContent}" Margin="2,4"  IsEnabled="{Binding IsLock}">
+                                    <Button Grid.Column="1" x:Name="_faBtn" Style="{DynamicResource TopButton}" Content="{Binding FAButtonContent}" Margin="2,4"  IsEnabled="{Binding IsLock}" WindowChrome.IsHitTestVisibleInChrome="True">
                                         <i:Interaction.Triggers>
                                             <i:EventTrigger EventName="Click">
                                                 <cal:ActionMessage MethodName="FADisable">
@@ -333,7 +333,7 @@
                                     <!--<Border Margin="2,4" Background="{DynamicResource TopFrame_UserInfoBG}" BorderBrush="{DynamicResource TopFrame_UserInfoBD}" BorderThickness="1" CornerRadius="5" SnapsToDevicePixels="True">
                                        <TextBlock TextWrapping="NoWrap" Text="{Binding User.LoginName}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{DynamicResource TopFrame_TextColor}" FontFamily="Arial" FontSize="16"/>
                                     </Border>-->
-                                    <Button Grid.Row="0" Style="{DynamicResource TopButton}" Foreground="White" FontWeight="Bold" Margin="2,4" Content="{Binding LockString}">
+                                    <Button Grid.Row="0" Style="{DynamicResource TopButton}" Foreground="White" FontWeight="Bold" Margin="2,4" Content="{Binding LockString}" WindowChrome.IsHitTestVisibleInChrome="True">
                                         <i:Interaction.Triggers>
                                             <i:EventTrigger EventName="Click">
                                                 <cal:ActionMessage MethodName="LockClick">