|
44 | 44 | <ScrollViewer |
45 | 45 | x:Name="ScrollViewer" |
46 | 46 | Grid.Column="1" |
| 47 | + Height="44" |
| 48 | + Margin="4 0 4 0" |
| 49 | + Padding="0" |
| 50 | + Background="Transparent" |
47 | 51 | HorizontalScrollBarVisibility="Hidden" |
48 | 52 | HorizontalScrollMode="Enabled" |
49 | 53 | VerticalScrollBarVisibility="Hidden" |
50 | 54 | VerticalScrollMode="Disabled"> |
51 | 55 | <ListView |
52 | 56 | Margin="0" |
| 57 | + Height="44" |
53 | 58 | x:Name="ListView" |
54 | 59 | AllowDrop="True" |
55 | 60 | Background="Transparent" |
| 61 | + VerticalContentAlignment="Center" |
| 62 | + Padding="0 0 0 0" |
56 | 63 | CanDragItems="true" |
57 | 64 | CanReorderItems="True" |
58 | 65 | DragEnter="ListView_DragEnter" |
|
68 | 75 | <utilities:InteractiveSurface |
69 | 76 | x:Name="InteractiveSurface" |
70 | 77 | HorizontalContentAlignment="Stretch" |
| 78 | + Padding="0" |
| 79 | + Height="32" |
| 80 | + FocusVisualPrimaryThickness="0" |
| 81 | + BorderThickness="0" |
| 82 | + FocusVisualSecondaryThickness="0" |
71 | 83 | Hovered="{x:Bind IsHovered, Mode=TwoWay}"> |
72 | 84 | <RelativePanel |
73 | 85 | Height="32" |
74 | | - Margin="4 2 4 2" |
| 86 | + Margin="2 0 2 0" |
75 | 87 | Padding="0" |
76 | 88 | CornerRadius="4" |
77 | 89 | Background="Transparent" |
|
86 | 98 | </behaviors:MiddleClickBehavior> |
87 | 99 | </interactivity:Interaction.Behaviors> |
88 | 100 |
|
89 | | - <Border |
| 101 | + <!--<Border |
90 | 102 | Height="3" |
91 | 103 | VerticalAlignment="Bottom" |
92 | 104 | Background="{x:Bind TabTheme.Theme.Color, Mode=OneWay, Converter={StaticResource ColorResourceKeyFallbackConverter}, ConverterParameter=SystemControlHighlightAccentBrush}" |
93 | 105 | RelativePanel.AlignBottomWithPanel="True" |
94 | 106 | RelativePanel.AlignLeftWithPanel="True" |
95 | 107 | RelativePanel.AlignRightWithPanel="True" |
96 | | - Visibility="{x:Bind IsUnderlined, Mode=OneWay, Converter={StaticResource TrueToVisibleConverter}}" /> |
| 108 | + Visibility="{x:Bind IsUnderlined, Mode=OneWay, Converter={StaticResource TrueToVisibleConverter}}" />--> |
97 | 109 | <Grid |
98 | 110 | x:Name="HasExitedWithErrorGrid" |
99 | 111 | Height="32" |
|
114 | 126 | RelativePanel.LeftOf="CloseButton" |
115 | 127 | RelativePanel.RightOf="HasExitedWithErrorGrid" |
116 | 128 | Style="{StaticResource CaptionTextBlockStyle}" |
| 129 | + Foreground="{ThemeResource ListViewItemForeground}" |
117 | 130 | Text="{x:Bind TabTitle, Mode=OneWay, Converter={StaticResource TextMiddleEllipsisConverter}}" |
118 | 131 | TextWrapping="NoWrap" /> |
119 | 132 | <Grid |
|
122 | 135 | RelativePanel.AlignRightWithPanel="True"> |
123 | 136 | <Button |
124 | 137 | Width="32" |
| 138 | + Background="Aqua" |
125 | 139 | HorizontalAlignment="Center" |
126 | 140 | Command="{x:Bind CloseCommand}" |
127 | 141 | Style="{StaticResource TitleBarButtonStyle}" |
|
150 | 164 | <Style TargetType="ListViewItem"> |
151 | 165 | <Setter Property="MinWidth" Value="100" /> |
152 | 166 | <Setter Property="MaxWidth" Value="200" /> |
| 167 | + <Setter Property="Height" Value="32" /> |
153 | 168 | <Setter Property="MinHeight" Value="32" /> |
| 169 | + <Setter Property="MaxHeight" Value="32" /> |
154 | 170 | <Setter Property="Padding" Value="0" /> |
155 | 171 | <Setter Property="Margin" Value="0" /> |
156 | 172 | <Setter Property="views:TabBarBackgroundBindingHelper.BackgroundBindingPath" Value="BackgroundTabTheme" /> |
|
172 | 188 | <Setter.Value> |
173 | 189 | <ControlTemplate TargetType="ListViewItem"> |
174 | 190 | <ListViewItemPresenter |
| 191 | + BackgroundSizing="OuterBorderEdge" |
175 | 192 | x:Name="Root" |
176 | 193 | CornerRadius="4" |
177 | | - Height="36" |
| 194 | + MinHeight="{TemplateBinding Height}" |
| 195 | + Height="{TemplateBinding Height}" |
| 196 | + MaxHeight="{TemplateBinding Height}" |
| 197 | + Padding="{TemplateBinding Padding}" |
| 198 | + Margin="{TemplateBinding Margin}" |
| 199 | + SelectedBorderThickness="0" |
178 | 200 | HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
179 | 201 | VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
180 | 202 | CheckBoxBrush="{ThemeResource ListViewItemCheckBoxBrush}" |
|
191 | 213 | FocusSecondaryBorderBrush="{ThemeResource ListViewItemFocusSecondaryBorderBrush}" |
192 | 214 | FocusVisualMargin="{TemplateBinding FocusVisualMargin}" |
193 | 215 | FocusVisualPrimaryBrush="{TemplateBinding FocusVisualPrimaryBrush}" |
194 | | - FocusVisualPrimaryThickness="0" |
| 216 | + FocusVisualPrimaryThickness="{TemplateBinding FocusVisualPrimaryThickness}" |
195 | 217 | FocusVisualSecondaryBrush="{TemplateBinding FocusVisualSecondaryBrush}" |
196 | | - FocusVisualSecondaryThickness="0" |
| 218 | + FocusVisualSecondaryThickness="{TemplateBinding FocusVisualSecondaryThickness}" |
197 | 219 | PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackground}" |
198 | 220 | PointerOverBackground="{Binding TabTheme, Mode=OneWay, Converter={StaticResource TabColorFallbackConverter}, ConverterParameter=BackgroundPointerOver}" |
199 | 221 | PointerOverForeground="{ThemeResource ListViewItemForegroundPointerOver}" |
200 | 222 | PressedBackground="{Binding TabTheme, Mode=OneWay, Converter={StaticResource TabColorFallbackConverter}, ConverterParameter=BackgroundPressed}" |
201 | 223 | ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}" |
202 | | - RevealBackground="{ThemeResource ListViewItemRevealBackground}" |
203 | | - RevealBorderBrush="{ThemeResource ListViewItemRevealBorderBrush}" |
204 | | - RevealBorderThickness="0" |
205 | 224 | SelectedBackground="{Binding TabTheme, Mode=OneWay, Converter={StaticResource TabColorFallbackConverter}, ConverterParameter=BackgroundSelected}" |
206 | 225 | SelectedForeground="{ThemeResource ListViewItemForegroundSelected}" |
207 | 226 | SelectedPointerOverBackground="{Binding TabTheme, Mode=OneWay, Converter={StaticResource TabColorFallbackConverter}, ConverterParameter=BackgroundSelectedPointerOver}" |
|
0 commit comments