rahul

rahul

  • NA
  • 1
  • 1.1k

User control that loads data?

Aug 28 2012 6:49 AM
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,