0
Answer

User control that loads data?

rahul

rahul

12y
905
1
I have a User control that loads data. this control has to be added to a tab item on the main window how do i do it in WPF ?

i have a main Windows control that contains a tab control with few tabs
<
TabControl Height="400" Name="workDetail" VerticalAlignment="Center" Background="LightGray">

<TabItem Header="Today" Name="tabItem1" >

</TabItem>

<TabItem Header="Development" Name="DevTab">

<Grid />

</TabItem>

<TabItem Header="Adhoc" Name="AdhoctabItem">

<Grid />

</TabItem>

<TabItem Header="Defect" Name="DefecttabItem">

<Grid />

</TabItem>

<TabItem Header="TimeSheet" Name="Timetab">

<Grid />

</TabItem>

<TabItem Header="Reports" Name="ReportstabItem">

<Grid />

</TabItem>

</TabControl>

i have a User control that has the data in it. this user control has to be added to the above tab item how do i add it,