<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="640" Height="480" x:Class="GZ.Projects.HnSx.View1" xmlns:local="clr-namespace:GZ.Projects.HnSx">
|
<Grid>
|
<TabControl>
|
<TabControl.Resources>
|
<Style TargetType="TabItem">
|
<Setter Property="Template">
|
<Setter.Value>
|
<ControlTemplate TargetType="TabItem">
|
<Border Name="Border" Margin="2,0" BorderBrush="Gainsboro" BorderThickness="1,1,1,0" CornerRadius="4,4,0,0">
|
<ContentPresenter x:Name="ContentSite" Margin="10,2" HorizontalAlignment="Center" VerticalAlignment="Center" ContentSource="Header" />
|
</Border>
|
<ControlTemplate.Triggers>
|
<Trigger Property="IsSelected" Value="True">
|
<Setter Property="Background" TargetName="Border" Value="LightSkyBlue" />
|
</Trigger>
|
<Trigger Property="IsSelected" Value="False">
|
<Setter Property="Background" TargetName="Border" Value="GhostWhite" />
|
</Trigger>
|
</ControlTemplate.Triggers>
|
</ControlTemplate>
|
</Setter.Value>
|
</Setter>
|
</Style>
|
</TabControl.Resources>
|
<TabItem>
|
<TabItem.Header>
|
<StackPanel Orientation="Horizontal">
|
<TextBlock Foreground="Orange" Text="emmm" />
|
</StackPanel>
|
</TabItem.Header>
|
<TextBlock HorizontalAlignment="Center" FontFamily="Courier New" Text="

////////////////////////////////////////////////////////////////////

// _ooOoo_ //

// o8888888o //

// 88' 。 '88 //

// (| ^_^ |) //

// O\ = /O //

// ____/`---'\____ //

// .' \\| |// `. //

// / \\||| : |||// \ //

// / _||||| -:- |||||- \ //

// | | \\\ - /// | | //

// | \_| ''\---/'' | | //

// \ .-\__ `-` ___/-. / //

// ___`. .' /--.--\ `. . ___ //

// .'' '《`.___\_《|》_/___.' 》'''. //

// | | : `- \`.;`\ _ /`;.`/ - ` : | | //

// \ \ `-. \_ __\ /__ _/ .-` / / //

// ========`-.____`-.___\_____/___.-`____.-'======== //

// `=---=' //

// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //

// 佛祖保佑 永无BUG 永不修改 //

////////////////////////////////////////////////////////////////////" TextWrapping="Wrap" />
|
</TabItem>
|
<TabItem>
|
<TabItem.Header>
|
<StackPanel Orientation="Horizontal">
|
<TextBlock Foreground="Purple" Text="WebView" />
|
</StackPanel>
|
</TabItem.Header>
|
</TabItem>
|
</TabControl>
|
</Grid>
|
</Window>
|