Posted on: 6/4/2013 3:24:56 PM | Views : 306

I have following Tab Control code and need to add only one tab either ""tabTest""  or ""tabTestLong "". I will know the visibility of one of the tab during run time. I can manage the visibility but I want to totally remove the tab, not hide.
Your input will be appricated. 
    <TabControl MinHeight="500" HorizontalAlignment="Left" Margin="5,0,0,0" Name="tabMain" VerticalAlignment="Top" MinWidth="825" Background="#eeeeee" SelectionChanged="tabMain_SelectionChanged" Width="825">
           <TabItem  Visibility ="Hidden" Header="Reg" Name="tabReg" Style="{StaticResource tabItemBase}" >
                <AVZ:Reg x:Name="registration" Margin="0,0,0,0& ...

Go to the complete details ...