|
5 | 5 | xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
|
6 | 6 | xmlns:local="using:Files.App.Controls">
|
7 | 7 |
|
8 |
| - <x:Double x:Key="BreadcrumbBarHeight">32</x:Double> |
| 8 | + <x:Double x:Key="BreadcrumbBarHeight">34</x:Double> |
9 | 9 | <x:Double x:Key="BreadcrumbBarMinWidth">120</x:Double>
|
10 | 10 | <x:Double x:Key="BreadcrumbBarEllipsisFontSize">16</x:Double>
|
11 | 11 |
|
12 | 12 | <Thickness x:Key="BreadcrumbBarChevronPadding">4,0</Thickness>
|
13 | 13 | <Thickness x:Key="BreadcrumbBarItemPadding">8,0</Thickness>
|
14 | 14 | <Thickness x:Key="BreadcrumbBarRootItemPadding">16,0,8,0</Thickness>
|
| 15 | + <Thickness x:Key="BreadcrumbBarItemMargin">2,0,0,0</Thickness> |
15 | 16 |
|
16 | 17 | <CornerRadius x:Key="BreadcrumbBarItemCornerRadius">2,2,2,2</CornerRadius>
|
17 | 18 | <CornerRadius x:Key="BreadcrumbBarChevronCornerRaduis">2,2,2,2</CornerRadius>
|
|
21 | 22 | <Style BasedOn="{StaticResource DefaultBreadcrumbBarItemStyle}" TargetType="local:BreadcrumbBarItem" />
|
22 | 23 |
|
23 | 24 | <Style x:Key="DefaultBreadcrumbBarStyle" TargetType="local:BreadcrumbBar">
|
| 25 | + |
| 26 | + <Setter Property="Background" Value="Transparent" /> |
| 27 | + |
24 | 28 | <Setter Property="MinWidth" Value="{StaticResource BreadcrumbBarMinWidth}" />
|
| 29 | + |
| 30 | + <Setter Property="HorizontalAlignment" Value="Stretch" /> |
| 31 | + <Setter Property="HorizontalContentAlignment" Value="Center" /> |
| 32 | + <Setter Property="VerticalAlignment" Value="Stretch" /> |
| 33 | + <Setter Property="VerticalContentAlignment" Value="Center" /> |
| 34 | + |
25 | 35 | <Setter Property="AutomationProperties.LandmarkType" Value="Navigation" />
|
| 36 | + |
26 | 37 | <Setter Property="IsTabStop" Value="False" />
|
| 38 | + |
27 | 39 | <Setter Property="Template">
|
28 | 40 | <Setter.Value>
|
29 | 41 | <ControlTemplate TargetType="local:BreadcrumbBar">
|
30 | 42 | <Grid
|
31 | 43 | MinWidth="{TemplateBinding MinWidth}"
|
32 |
| - ColumnSpacing="2" |
| 44 | + HorizontalAlignment="{TemplateBinding HorizontalAlignment}" |
| 45 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| 46 | + Background="{TemplateBinding Background}" |
33 | 47 | TabFocusNavigation="Once"
|
34 | 48 | XYFocusKeyboardNavigation="Enabled">
|
35 | 49 | <Grid.ColumnDefinitions>
|
|
50 | 64 | <local:BreadcrumbBarItem
|
51 | 65 | x:Name="PART_EllipsisBreadcrumbBarItem"
|
52 | 66 | Grid.Column="1"
|
| 67 | + Margin="{StaticResource BreadcrumbBarItemMargin}" |
53 | 68 | AutomationProperties.AccessibilityView="Content"
|
54 | 69 | IsEllipsis="True"
|
55 | 70 | Visibility="Collapsed">
|
|
59 | 74 | <ItemsRepeater
|
60 | 75 | x:Name="PART_MainItemsRepeater"
|
61 | 76 | Grid.Column="2"
|
| 77 | + Margin="{StaticResource BreadcrumbBarItemMargin}" |
62 | 78 | ItemTemplate="{Binding ItemTemplate, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}"
|
63 | 79 | ItemsSource="{Binding ItemsSource, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" />
|
64 | 80 |
|
|
85 | 101 | <Setter Property="HorizontalAlignment" Value="Stretch" />
|
86 | 102 | <Setter Property="HorizontalContentAlignment" Value="Center" />
|
87 | 103 | <Setter Property="VerticalAlignment" Value="Stretch" />
|
88 |
| - <Setter Property="VerticalContentAlignment" Value="Center" /> |
| 104 | + <Setter Property="VerticalContentAlignment" Value="Stretch" /> |
89 | 105 |
|
90 | 106 | <Setter Property="FocusVisualMargin" Value="1" />
|
91 | 107 | <Setter Property="IsTabStop" Value="False" />
|
|
95 | 111 | <ControlTemplate TargetType="local:BreadcrumbBarItem">
|
96 | 112 | <Grid
|
97 | 113 | x:Name="PART_LayoutRoot"
|
98 |
| - ColumnSpacing="2" |
99 | 114 | TabFocusNavigation="Once"
|
100 | 115 | XYFocusKeyboardNavigation="Enabled">
|
101 | 116 | <Grid.ColumnDefinitions>
|
|
107 | 122 | <Button
|
108 | 123 | x:Name="PART_ItemContentButton"
|
109 | 124 | Padding="{TemplateBinding Padding}"
|
110 |
| - VerticalAlignment="Stretch" |
| 125 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
111 | 126 | AutomationProperties.AccessibilityView="Raw"
|
112 | 127 | Background="{TemplateBinding Background}"
|
113 | 128 | BorderBrush="{TemplateBinding BorderBrush}"
|
|
151 | 166 | <Button
|
152 | 167 | x:Name="PART_ItemChevronButton"
|
153 | 168 | Grid.Column="1"
|
| 169 | + Margin="{StaticResource BreadcrumbBarItemMargin}" |
154 | 170 | Padding="{StaticResource BreadcrumbBarChevronPadding}"
|
155 |
| - VerticalAlignment="Stretch" |
| 171 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
156 | 172 | AutomationProperties.AccessibilityView="Content"
|
157 | 173 | Background="{TemplateBinding Background}"
|
158 | 174 | BorderBrush="{TemplateBinding BorderBrush}"
|
|
0 commit comments