日期:2014-05-17 浏览次数:21147 次
<Grid>
<Button Margin="50,0,0,0" HorizontalAlignment="Left" Content="button1" Width="60" />
<Button Margin="50,0,0,0" HorizontalAlignment="Left" Content="button2" Width="60" />
</Grid>
<Grid>
<TabControl HorizontalAlignment="Left" Height="101" Grid.Row="1" VerticalAlignment="Top" Width="243" >
<TabItem Header="TabItem" Height="25" Margin="7,0,0,0" />
<TabItem Header="TabItem" Height="25" Margin="7,0,0,0" />
<TabItem Header="TabItem" Height="25" Margin="7,0,0,0" />
</TabControl>
</Grid>
<TabControl.Template>
<ControlTemplate TargetType="{x:Type TabControl}">
<Grid ClipToBounds="True" KeyboardNavigation.TabNavigation="Local" SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Name="ColumnDefinition0" Width="*"/>
<ColumnDefinition Name="ColumnDefinition2" Width="0"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Name="RowDefinition0" Height="Auto"/>
&nb