HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

TabControl 右键菜单异常

Open hacker-frok opened this issue 1 year ago • 0 comments
trafficstars

Describe the bug

设置ShowContextMenu="False" ,不显示右键菜单,但点击右键菜单后,此时是没有显示菜单的,但关闭这个TabItem 后,菜单就莫名显示出来了

Steps to reproduce the bug

 <hc:TabControl   x:Name="tabMain" 
     IsAnimationEnabled="False"  IsTabFillEnabled="False" ShowScrollButton="True"   ShowContextMenu="False"    howCloseButton="True"       
     Background="Transparent" BorderBrush="Transparent" CanBeClosedByMiddleButton="False" SnapsToDevicePixels="True"  
 >
   <hc:TabItem Header="TabItem1">
        <hc:SimplePanel Background="{DynamicResource RegionBrush}"/>
    </hc:TabItem>
    <hc:TabItem IsSelected="True" Header="TabItem2">
        <hc:SimplePanel Background="#FFE8563F"/>
    </hc:TabItem>
    <hc:TabItem Header="TabItem3">
        <hc:SimplePanel Background="#FF3F4EE8"/>
    </hc:TabItem>
 </hc:TabControl>

先点击后台,再点击关闭按钮,菜单必现,而且菜单还是英文的,与设置的语言不符

Expected behavior

No response

Screenshots

image

NuGet package version

None

IDE

No response

Framework type

No response

Windows version

No response

Additional context

No response

hacker-frok avatar Apr 16 '24 08:04 hacker-frok