123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <wnd:CustomWnd x:Class="Venus_UI.Views.ShellView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:wnd="http://OpenSEMI.Ctrlib.com/presentation"
- WindowState="Maximized"
- WindowStartupLocation="CenterScreen"
- xmlns:prism="http://prismlibrary.com/"
- mc:Ignorable="d"
- Title="JetPlasma" Height="450" Width="800" Loaded="CustomWnd_Loaded">
- <Window.Resources>
-
- <!--通用TabControl样式-->
- <Style TargetType="{x:Type TabControl}" >
- <!--<Setter Property="Background" Value="#FFC5D0D8"/>-->
- <Setter Property="Background" Value="#B1D2F2"/>
- <Setter Property="FontFamily" Value="Arial,SimSun"/>
- <Setter Property="FontSize" Value="13"></Setter>
- <Setter Property="ItemContainerStyle">
- <Setter.Value>
- <Style>
- <!--<Setter Property="Control.Height" Value="24"></Setter>-->
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabItem}">
- <Grid Margin="0 0 -10 0">
- <Path Data="M190 0 L 0 0 L 10 23 L 170 23 L 190 0" StrokeThickness="1" Fill="{TemplateBinding Background}"
- Stroke="Black">
- </Path>
- <ContentPresenter Margin="10 3 10 0" ContentSource="Header" Cursor="Hand" HorizontalAlignment="Center" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Trigger.Setters>
- <Setter Property="Background" Value="#FFCBD8D8"></Setter>
- <Setter Property="Panel.ZIndex" Value="1"></Setter>
- </Trigger.Setters>
- </Trigger>
- <Trigger Property="IsSelected" Value="False">
- <Trigger.Setters>
- <Setter Property="Background" Value="#FFA7ADAD"></Setter>
- </Trigger.Setters>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabControl}">
- <Grid ClipToBounds="True" KeyboardNavigation.TabNavigation="Local" SnapsToDevicePixels="True">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Name="ColumnDefinition0" Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Name="RowDefinition0" />
- <RowDefinition Name="RowDefinition1" Height="25"/>
- </Grid.RowDefinitions>
- <StackPanel Name="HeaderPanel"
- Orientation="Horizontal"
- Grid.Row="1"
- Background="#2c4746"
- Margin="0,0,0,0"
- Panel.ZIndex="1"
- IsItemsHost="True"
- KeyboardNavigation.TabIndex="1"/>
- <Border Name="ContentPanel"
- Grid.Row="0"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- BorderThickness="{TemplateBinding Border.BorderThickness}"
- KeyboardNavigation.DirectionalNavigation="Contained"
- KeyboardNavigation.TabIndex="2"
- KeyboardNavigation.TabNavigation="Local">
- <ContentPresenter Name="PART_SelectedContentHost"
- Margin="{TemplateBinding Control.Padding}"
- Content="{TemplateBinding TabControl.SelectedContent}"
- ContentSource="SelectedContent"
- ContentStringFormat="{TemplateBinding TabControl.SelectedContentStringFormat}"
- ContentTemplate="{TemplateBinding TabControl.SelectedContentTemplate}"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"/>
- </Border>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
- <Grid>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="90"/>
- <RowDefinition/>
- <RowDefinition Height="60"/>
- </Grid.RowDefinitions>
- <ContentControl x:Name="Top_Frame" Grid.Row="0" prism:RegionManager.RegionName="TopRegion"/>
- <ContentControl x:Name="Main_Frame" Grid.Row="1" prism:RegionManager.RegionName="MainRegion" />
- <StackPanel x:Name="Bottom_Frame" Grid.Row="2" Background="{DynamicResource BottomFrame_BG}" Orientation="Horizontal"/>
- </Grid>
- </wnd:CustomWnd>
|