Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabControl 右键菜单异常 #1570

Open
hacker-frok opened this issue Apr 16, 2024 · 0 comments
Open

TabControl 右键菜单异常 #1570

hacker-frok opened this issue Apr 16, 2024 · 0 comments

Comments

@hacker-frok
Copy link

hacker-frok commented Apr 16, 2024

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 hacker-frok changed the title TabControl 右键菜单异步 TabControl 右键菜单异常 Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant