Hi Experts,
I have created a WPF Tab Control in a user control and trying to use the Tab control in other user control. But the Tab Control appear very small. I tried to set the horizontalcontentalignment and verticalcontentalignment property to stretch but still no effect. I do not want to hard code the height and width as might have scalability issue.
//tabcontrol.xaml
<Grid>
<TabControl Name="myPropertyTabCtrl" HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch" VerticalAlignment="Stretch"
VerticalContentAlignment="Stretch" >
<TabItem Header="Status" Name="myStatusTab" />
<TabItem Header="Service" Name="myServiceTab"/>
</TabControl>
</Grid>
//Mainpage.xaml
//MainPage.xaml.cs
I tried in constructor as well:
myPropertyTabCtrl.InvalidateArrange();
myPropertyTabCtrl.InvalidateMeasure();
myPropertyTabCtrl.InvalidateVisual();
myPropertyTabCtrl.UpdateLayout();
Any help how can increase the size of tab control in main page so that can span in all four columns not only in one column?
Thanks and regards, Maverick