HandyOrg / HandyOrg/HandyControl

TabControl 右键菜单异常

Open
#1,570 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
7.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the provided C# XAML using TabControl, TabItem, ShowContextMenu="False", and the close button. Trace the TabControl context-menu behavior after a right-click and tab close. Done means no context menu appears afterward and the menu language does not unexpectedly revert to English.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.