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

User Can Navigate To Disabled Tab In TabControl From Overflow Button #551

Closed
AlBannaTechno opened this issue Dec 3, 2020 · 0 comments
Closed
Labels
🐛 bug Something isn't working

Comments

@AlBannaTechno
Copy link

Describe the bug

When we have TabItems With Tabs and we disabled one tab with IsEnabled = false use can not select it, but just when an overflow happens user can select it

To Reproduce

just use this code

<hc:TabControl x:Name="MainTabsControl" Grid.Column="1" ShowOverflowButton="True" ShowContextMenu="False" Background="{StaticResource SecondaryRegionBrush}">
	<hc:TabItem x:Name="MonitorTabItem" Header="{x:Static cross:Lang.MonitorWindowTitle}" IsSelected="True" Background="{StaticResource SecondaryRegionBrush}">

	</hc:TabItem>

<hc:TabItem x:Name="DisabledTabItem" Header="{x:Static cross:Lang.DisabledWindowTitle}" IsEnabled="False" Background="{StaticResource SecondaryRegionBrush}">

	</hc:TabItem>
</hc:TabControl>

then resize the window, you will see the overflow button and now you can open the disabled tab

Expected behavior
User should not able to select the disabled tab?

Screenshots

box

Environment (please complete the following information):

  • .net: 4.72
  • IDE : Rider 2020.3
  • Version 2.5.1

Additional context
Add any other context about the problem here.

@ghost1372 ghost1372 added the 🐛 bug Something isn't working label Dec 4, 2020
@NaBian NaBian closed this as completed in 8e91d90 Dec 7, 2020
NaBian added a commit that referenced this issue Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants