Click here to Skip to main content
15,895,964 members

I am sorry, I thought you mean an ASP control. here is the WPF one:
first the markups:

XML
<Grid>
    <StackPanel Name="Tabs" HorizontalAlignment="Left" Width="70">
        <StackPanel Name="Tab1" >
            <Label Content="Tab1" Height="30" />
        </StackPanel>
        <StackPanel Name="Tab2" >
            <Label Content="Tab2" Height="30" />
        </StackPanel>
    </StackPanel>
    <StackPanel Name="Contents" Margin="70,0,0,0" >
        <StackPanel Name="Content1">
            <Label Content="Content  Content  Content" />
            <Label Content="Content  Content  Content" />
        </StackPanel>
        <StackPanel Name="Content2" Visibility="Hidden">
            <Label Content="Content  Content  Content" />
            <Label Content="Content  Content  Content" />
        </StackPanel>
    </StackPanel>
</Grid>


after that handle the clicks on the tabs to togle the visibility of the contents.
 
Share this answer
 
v2
Comments
Adam7869 20-Aug-12 11:11am    
Thanks for the help, but it turns out the TabControl can do this already, see my solution. Thanks!
Adam7869 20-Aug-12 11:11am    
Thanks for the help, but it turns out the TabControl can do this already, see my solution. Thanks!
The answer was actually really easy:

<TabControl TabStripPlacement="Left">
 
Share this answer
 

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