2
czw
2025-07-04 32ea5a7e974d5ef71a921d59e38094d6ba0effc3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<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="888888888888" TextWrapping="Wrap" />
      </TabItem>
      <TabItem>
        <TabItem.Header>
          <StackPanel Orientation="Horizontal">
            <TextBlock Foreground="Purple" Text="WebView" />
          </StackPanel>
        </TabItem.Header>
      </TabItem>
    </TabControl>
  </Grid>
</Window>