The TabControl is not working correctly
Posted: 25 May 2021, 13:14
just created a tabControl which which contains of two tabitems and the tabcontrol is created in the file TabControl.xaml and i registered it in the Main.Cpp and it's header also. When we view the design in the visualstudio the design looks good and i call the TabControl.xaml inside another file POCtwo.xaml and when we run the solution and open the POC section the TabControl come in different way that is like ,one below other in the entire screen, and we are also not able to view the TabstripPlacement in side the tab that it is also not shown in the neosis window.what may be the reason behind this..need immediate respond.
Code: Select all
<TabControl>
<TabItem Header="Tab1">
<TabItem.Background>
<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#FFF0F0F0" Offset="0"/>
<GradientStop Color="#FFECA9A9" Offset="1"/>
</LinearGradientBrush>
</TabItem.Background>
<TextBox></TextBox>
</TabItem>
<TabItem Header="Tab2">
<TabItem.Background>
<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#FFF0F0F0" Offset="0"/>
<GradientStop Color="#FFDE9696" Offset="1"/>
</LinearGradientBrush>
</TabItem.Background>
<TextBox></TextBox>
</TabItem>
<TabItem Header="Tab3">
<TabItem.Background>
<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#FFF0F0F0" Offset="0"/>
<GradientStop Color="#FFE08888" Offset="1"/>
</LinearGradientBrush>
</TabItem.Background>
<TextBox></TextBox>
</TabItem>
<TabItem Header="Tab4">
<TabItem.Background>
<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#FFF0F0F0" Offset="0"/>
<GradientStop Color="#FFCF8F8F" Offset="1"/>
</LinearGradientBrush>
</TabItem.Background>
<TextBox></TextBox>
</TabItem>
</TabControl>