Skip to content

TabControl Tabs Don't Work After First Time Showing In DialogHost #4063

@corvinsz

Description

@corvinsz

Discussed in #4062

Originally posted by reillybainet June 3, 2026
Using
VS 26
.NET 10-windows10.0.26100.0
MaterialDesignThemes 5.3.2

I have a simple main window that contains a DialogHost. When I click a button, I create a new StimulusDialog object which is a user control that is a grid containing the StimulusView contents and ok/cancel buttons. The StimulusView is just a tab control with 4 tabs. The ok/cancel buttons Command property is set to DialogHost.CloseDialogCommand.

The first time that I click the button in the main view, I can select the tabs and click ok or cancel.

After that, none of the tabs will select, but I can still ok or cancel.

I'm sure that I'm doing it wrong, but I can't figure it out. Here is a simple example that replicates my issue.

Any help is very appreciated!

Thanks.

-Reilly.

MdDialog.zip

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions