Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello there,
I have a TabControl, where one of it's items should contain another TabControl.
I already read that this was only possible with a workaround in WinForms, but I am using WPF. Nevertheless I have problems to implement that. Here's a scheme of my XAML-Code:
XML
<Window>
  <Grid>
    <TabControl>
      <TabItem/>
      <TabItem>
        <TabControl>
          <TabItem>
            CONTROLS SHOULD BE HERE
          </TabItem>
        </TabControl>
      </TabItem>
    </TabControl>
  </Grid>
</Window>

The Controls of the TabItem aren't displayed, only if I place them into the first Grid, they are viewable. It still doesn't work when the TabItem has a Grid/Stackpanel.
Posted
Updated 17-Oct-14 2:17am
v2
Comments
Richard Deeming 17-Oct-14 12:12pm    
That markup works for me (once I've added a Header to each TabItem).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900