|
96 | 96 | </Grid.ColumnDefinitions> |
97 | 97 | <ContentPresenter x:Name="LeftContentPresenter" ContentTemplate="{TemplateBinding TabStripHeaderTemplate}" Content="{TemplateBinding TabStripHeader}" Grid.Column="0"/> |
98 | 98 | <primitiveContract7Present:TabViewListView x:Name="TabListView" AllowDrop="{TemplateBinding AllowDropTabs}" CanReorderItems="{TemplateBinding CanReorderTabs}" Grid.Column="1" CanDragItems="{TemplateBinding CanDragTabs}" ItemTemplate="{TemplateBinding TabItemTemplate}" ItemsSource="{TemplateBinding TabItemsSource}" ItemTemplateSelector="{TemplateBinding TabItemTemplateSelector}"/> |
99 | | - <Button x:Name="AddButton" Command="{TemplateBinding AddTabButtonCommand}" CommandParameter="{TemplateBinding AddTabButtonCommandParameter}" Content="" Grid.Column="2" Style="{StaticResource TabViewButtonStyle}" Visibility="{Binding IsAddTabButtonVisible, RelativeSource={RelativeSource Mode=TemplatedParent}}"/> |
| 99 | + <Button x:Name="AddButton" Command="{TemplateBinding AddTabButtonCommand}" CommandParameter="{TemplateBinding AddTabButtonCommandParameter}" Content="" Grid.Column="2" Style="{StaticResource TabViewButtonStyle}" Visibility="{Binding IsAddTabButtonVisible, RelativeSource={RelativeSource Mode=TemplatedParent}}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/> |
100 | 100 | <Grid Background="Transparent" Name="DragArea" Loaded="DragArea_Loaded" Grid.Column="3"/> |
| 101 | + |
101 | 102 | </Grid> |
102 | | - <ContentPresenter x:Name="TabContentPresenter" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Grid.Row="1"/> |
| 103 | + <!--<ContentPresenter x:Name="TabContentPresenter" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Grid.Row="1"/>--> |
103 | 104 | </Grid> |
104 | 105 | </ControlTemplate> |
105 | 106 | </Setter.Value> |
106 | 107 | </Setter> |
107 | 108 | </Style> |
108 | 109 | </Page.Resources> |
109 | 110 |
|
110 | | - <Grid Name="rootGrid" Background="Transparent"> |
111 | | - <uilib:TabView Background="{StaticResource SystemControlAcrylicWindowBrush}" AddTabButtonClick="TabStrip_AddTabButtonClick" Style="{StaticResource TabViewStyleFixed}" SelectionChanged="TabStrip_SelectionChanged" TabCloseRequested="TabStrip_TabCloseRequested" CanDragTabs="False" AllowDropTabs="False" Grid.ColumnSpan="3" CanReorderTabs="True" Name="TabStrip" TabWidthMode="Equal" VerticalAlignment="Stretch"> |
| 111 | + <Grid Background="{StaticResource SystemControlAcrylicWindowBrush}" Name="rootGrid" > |
| 112 | + <Grid.RowDefinitions> |
| 113 | + <RowDefinition Height="Auto"/> |
| 114 | + <RowDefinition Height="*"/> |
| 115 | + </Grid.RowDefinitions> |
| 116 | + <Grid.ColumnDefinitions> |
| 117 | + <ColumnDefinition Width="*"/> |
| 118 | + <ColumnDefinition Width="175"/> |
| 119 | + </Grid.ColumnDefinitions> |
| 120 | + <ContentPresenter Background="{StaticResource ApplicationPageBackgroundThemeBrush}" x:Name="ContentPresenter" Grid.Row="1" Grid.ColumnSpan="2" Content="{x:Bind ((uilib:TabViewItem)(local:InstanceTabsView).TabStrip.SelectedItem).Content, Mode=OneWay}"/> |
| 121 | + |
| 122 | + <uilib:TabView Background="Transparent" Grid.Row="0" AddTabButtonClick="TabStrip_AddTabButtonClick" Style="{StaticResource TabViewStyleFixed}" SelectionChanged="TabStrip_SelectionChanged" TabCloseRequested="TabStrip_TabCloseRequested" CanDragTabs="False" AllowDropTabs="False" CanReorderTabs="True" Name="TabStrip" TabWidthMode="Equal" VerticalAlignment="Stretch"> |
112 | 123 | <uilib:TabView.Resources> |
113 | 124 | <ResourceDictionary> |
114 | 125 | <ResourceDictionary.ThemeDictionaries> |
|
0 commit comments