|
|
|
@ -1,10 +1,10 @@ |
|
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
xmlns:local="clr-namespace:MultiTerm.Wpf.CustomControl"> |
|
|
|
xmlns:local="clr-namespace:MultiTerm.Wpf.CustomControl"> |
|
|
|
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="TabItem.Selected.Background" Color="#FFFFFF"/> |
|
|
|
<SolidColorBrush x:Key="TabItem.Selected.Background" Color="#FFFFFF"/> |
|
|
|
<SolidColorBrush x:Key="TabItem.Selected.Border" Color="#ACACAC"/> |
|
|
|
<SolidColorBrush x:Key="TabItem.Selected.Border" Color="#ACACAC"/> |
|
|
|
<Style x:Key="TabControlStyle1" TargetType="{x:Type local:ExtendedTabControl}"> |
|
|
|
<Style TargetType="{x:Type local:ExtendedTabControl}"> |
|
|
|
<Setter Property="Padding" Value="2"/> |
|
|
|
<Setter Property="Padding" Value="2"/> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
|
|
@ -24,7 +24,10 @@ |
|
|
|
<RowDefinition x:Name="RowDefinition0" Height="Auto"/> |
|
|
|
<RowDefinition x:Name="RowDefinition0" Height="Auto"/> |
|
|
|
<RowDefinition x:Name="RowDefinition1" Height="*"/> |
|
|
|
<RowDefinition x:Name="RowDefinition1" Height="*"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<TabPanel x:Name="headerPanel" Background="Transparent" Grid.Column="0" IsItemsHost="true" Margin="2,2,2,0" Grid.Row="0" KeyboardNavigation.TabIndex="1" Panel.ZIndex="1"/> |
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="0"> |
|
|
|
|
|
|
|
<TabPanel x:Name="headerPanel" Background="Transparent" IsItemsHost="true" Margin="2,2,2,0" KeyboardNavigation.TabIndex="1" Panel.ZIndex="1"/> |
|
|
|
|
|
|
|
<Button Margin="2,2,2,2" Height="{TemplateBinding Height}" Width="{TemplateBinding Height}">+</Button> |
|
|
|
|
|
|
|
</StackPanel> |
|
|
|
<Border x:Name="contentPanel" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="0" KeyboardNavigation.DirectionalNavigation="Contained" Grid.Row="1" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local"> |
|
|
|
<Border x:Name="contentPanel" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Column="0" KeyboardNavigation.DirectionalNavigation="Contained" Grid.Row="1" KeyboardNavigation.TabIndex="2" KeyboardNavigation.TabNavigation="Local"> |
|
|
|
<ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> |
|
|
|
<ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/> |
|
|
|
</Border> |
|
|
|
</Border> |
|
|
|
|