自己写的一段TabControl代码
<Window.Resources>
</Window.Resources>
<Grid Height="269">
<TabControl Margin="0,0,0,40" Name="tabControl1">
<TabItem Name="today" Header="今天">
<Grid HorizontalAlignment="Left">
<TextBlock Text="Temperature" Margin="10,10,0,0"/>
<TextBlock Margin="100,10,0,0" Name="todayTempc"></TextBlock>
<TextBlock Text="Condition" Margin="10,30,0,0"/>
<TextBlock Margin="100,30,0,0" Name="todayCondition"></TextBlock>
<TextBlock Text="Humidity" Margin="10,50,0,0"/>
<TextBlock Margin="100,50,0,0" Name="todayHumidity"></TextBlock>
<TextBlock Text="Wind" Margin="10,70,0,0"/>
<TextBlock Margin="100,70,0,0" Name="todayWind"></TextBlock>
</Grid>
</TabItem>
<TabItem Name="tomorrow" Header="明天">
<Grid HorizontalAlignment="Left">
<TextBlock Text="Low" Margin="10,10,0,0"/>
<TextBlock Margin="100,10,0,0" Name="tomorrowLow"></TextBlock>
<TextBlock Text="High" Margin="10,30,0,0"/>
<TextBlock Margin="100,30,0,0" Name="tomorrowHigh"></TextBlock>
<TextBlock Text="Condition" Margin="10,50,0,0"/>
<TextBlock Margin="100,50,0,0" Name="tomorrowCondition"></TextBlock>
</Grid>
</TabItem>
<TabItem Name="third" Header="后天">
<Grid HorizontalAlignment="Left">
<TextBlock Text="Low" Margin="10,10,0,0"/>
<TextBlock Margin="100,10,0,0" Name="thirdLow"></TextBlock>
<TextBlock Text="High" Margin="10,30,0,0"/>
<TextBlock Margin="100,30,0,0" Name="thirdHigh"></TextBlock>
<TextBlock Text="Condition" Margin="10,50,0,0"/>
<TextBlock Margin="100,50,0,0" Name="thirdCondition"></TextBlock>
</Grid>
</TabItem>
<TabItem Name="fouth" Header="大后天">
<Grid HorizontalAlignment="Left">
<TextBlock Text="Low" Margin="10,10,0,0"/>
<TextBlock Margin="100,10,0,0" Name="fouthLow"></TextBlock>
<TextBlock Text="High" Margin="10,30,0,0"/>
<TextBlock Margin="100,30,0,0" Name="fouthHigh"></TextBlock>
<TextBlock Text="Condition" Margin="10,50,0,0"/>
<TextBlock Margin="100,50,0,0" Name="fouthCondition"></TextBlock>
</Grid>
</TabItem>
</TabControl>
<Button Height="23" Margin="0,0,18,10" Name="buttonRefresh"
VerticalAlignment="Bottom" Click="buttonRefresh_Click"
HorizontalAlignment="Right" Width="75">刷新</Button>
</Grid>