|
13 | 13 | <Thickness x:Key="BreadcrumbBarItemPadding">8,0</Thickness>
|
14 | 14 | <Thickness x:Key="BreadcrumbBarRootItemPadding">16,0,8,0</Thickness>
|
15 | 15 | <Thickness x:Key="BreadcrumbBarItemMargin">2,0,0,0</Thickness>
|
| 16 | + <x:Double x:Key="BreadcrumbBarItemHeight">32</x:Double> |
16 | 17 |
|
17 | 18 | <CornerRadius x:Key="BreadcrumbBarItemCornerRadius">2,2,2,2</CornerRadius>
|
18 | 19 | <CornerRadius x:Key="BreadcrumbBarChevronCornerRaduis">2,2,2,2</CornerRadius>
|
|
55 | 56 | x:Name="PART_RootBreadcrumbBarItem"
|
56 | 57 | Grid.Column="0"
|
57 | 58 | Padding="{StaticResource BreadcrumbBarRootItemPadding}"
|
58 |
| - AutomationProperties.AccessibilityView="Content" |
59 |
| - CornerRadius="{StaticResource BreadcrumbBarRootItemCornerRadius}"> |
| 59 | + CornerRadius="{StaticResource BreadcrumbBarRootItemCornerRadius}" |
| 60 | + ItemToolTip="{TemplateBinding RootItemToolTip}"> |
60 | 61 | <ContentPresenter Content="{Binding RootItem, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" />
|
61 | 62 | </local:BreadcrumbBarItem>
|
62 | 63 |
|
63 | 64 | <local:BreadcrumbBarItem
|
64 | 65 | x:Name="PART_EllipsisBreadcrumbBarItem"
|
65 | 66 | Grid.Column="1"
|
66 | 67 | Margin="{StaticResource BreadcrumbBarItemMargin}"
|
67 |
| - AutomationProperties.AccessibilityView="Content" |
68 | 68 | IsEllipsis="True"
|
| 69 | + ToolTipService.ToolTip="{TemplateBinding EllipsisButtonToolTip}" |
69 | 70 | Visibility="Collapsed">
|
70 | 71 | <FontIcon FontSize="{StaticResource BreadcrumbBarEllipsisFontSize}" Glyph="" />
|
71 | 72 | </local:BreadcrumbBarItem>
|
|
96 | 97 | <Setter Property="FontWeight" Value="{ThemeResource BreadcrumbBarItemFontWeight}" />
|
97 | 98 |
|
98 | 99 | <Setter Property="Padding" Value="{ThemeResource BreadcrumbBarItemPadding}" />
|
99 |
| - <Setter Property="Height" Value="{ThemeResource BreadcrumbBarHeight}" /> |
| 100 | + <Setter Property="Height" Value="{ThemeResource BreadcrumbBarItemHeight}" /> |
100 | 101 |
|
101 | 102 | <Setter Property="HorizontalAlignment" Value="Stretch" />
|
102 | 103 | <Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
114 | 115 | x:Name="PART_LayoutRoot"
|
115 | 116 | TabFocusNavigation="Once"
|
116 | 117 | XYFocusKeyboardNavigation="Enabled">
|
117 |
| - <Grid.ColumnDefinitions> |
118 |
| - <ColumnDefinition x:Name="PART_ContentColumn" Width="Auto" /> |
119 |
| - <ColumnDefinition x:Name="PART_ChevronColumn" Width="Auto" /> |
120 |
| - </Grid.ColumnDefinitions> |
121 |
| - |
122 |
| - <!-- Clickable Area --> |
123 |
| - <Button |
124 |
| - x:Name="PART_ItemContentButton" |
125 |
| - Padding="{TemplateBinding Padding}" |
126 |
| - VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
127 |
| - AutomationProperties.AccessibilityView="Raw" |
128 |
| - Background="{TemplateBinding Background}" |
129 |
| - BorderBrush="{TemplateBinding BorderBrush}" |
130 |
| - BorderThickness="{TemplateBinding BorderThickness}" |
131 |
| - Control.IsTemplateFocusTarget="True" |
132 |
| - CornerRadius="{TemplateBinding CornerRadius}" |
133 |
| - UseSystemFocusVisuals="True"> |
134 |
| - <Button.Resources> |
135 |
| - <ResourceDictionary> |
136 |
| - <StaticResource x:Key="ButtonBackgroundPointerOver" ResourceKey="SubtleFillColorTertiaryBrush" /> |
137 |
| - <StaticResource x:Key="ButtonBackgroundPressed" ResourceKey="SubtleFillColorSecondaryBrush" /> |
138 |
| - </ResourceDictionary> |
139 |
| - </Button.Resources> |
140 |
| - |
141 |
| - <FlyoutBase.AttachedFlyout> |
142 |
| - <MenuFlyout |
143 |
| - x:Name="PART_ItemEllipsisDropDownMenuFlyout" |
144 |
| - Placement="Bottom" |
145 |
| - ScrollViewer.VerticalScrollBarVisibility="Auto" |
146 |
| - ScrollViewer.VerticalScrollMode="Auto"> |
147 |
| - <MenuFlyout.MenuFlyoutPresenterStyle> |
148 |
| - <Style TargetType="MenuFlyoutPresenter"> |
149 |
| - <Setter Property="MaxHeight" Value="400" /> |
150 |
| - <!-- Workaround for https://github.com/files-community/Files/issues/13078 --> |
151 |
| - <Setter Target="HighContrastAdjustment" Value="None" /> |
152 |
| - </Style> |
153 |
| - </MenuFlyout.MenuFlyoutPresenterStyle> |
154 |
| - </MenuFlyout> |
155 |
| - </FlyoutBase.AttachedFlyout> |
156 |
| - |
157 |
| - <ContentPresenter |
158 |
| - x:Name="PART_ItemContentPresenter" |
159 |
| - HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 118 | + <StackPanel AutomationProperties.Name="{TemplateBinding ItemToolTip}" Orientation="Horizontal"> |
| 119 | + <!-- Clickable Area --> |
| 120 | + <Button |
| 121 | + x:Name="PART_ItemContentButton" |
| 122 | + Padding="{TemplateBinding Padding}" |
160 | 123 | VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
161 | 124 | AutomationProperties.AccessibilityView="Raw"
|
162 |
| - Content="{TemplateBinding Content}" |
163 |
| - ContentTemplate="{TemplateBinding ContentTemplate}" |
164 |
| - ContentTransitions="{TemplateBinding ContentTransitions}" |
165 |
| - FontFamily="{TemplateBinding FontFamily}" |
166 |
| - FontSize="{TemplateBinding FontSize}" |
167 |
| - FontWeight="{TemplateBinding FontWeight}" |
168 |
| - Foreground="{ThemeResource BreadcrumbBarForegroundBrush}" |
169 |
| - TextLineBounds="Tight" /> |
170 |
| - |
171 |
| - </Button> |
172 |
| - |
173 |
| - <!-- Chevron --> |
174 |
| - <Button |
175 |
| - x:Name="PART_ItemChevronButton" |
176 |
| - Grid.Column="1" |
177 |
| - Margin="{StaticResource BreadcrumbBarItemMargin}" |
178 |
| - Padding="{StaticResource BreadcrumbBarChevronPadding}" |
179 |
| - VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
180 |
| - AutomationProperties.AccessibilityView="Content" |
181 |
| - Background="{TemplateBinding Background}" |
182 |
| - BorderBrush="{TemplateBinding BorderBrush}" |
183 |
| - BorderThickness="{TemplateBinding BorderThickness}" |
184 |
| - CornerRadius="{StaticResource BreadcrumbBarChevronCornerRaduis}" |
185 |
| - Style="{StaticResource BreadcrumbBarItemChevronButtonStyle}" |
186 |
| - UseSystemFocusVisuals="True"> |
187 |
| - <Button.Resources> |
188 |
| - <ResourceDictionary> |
189 |
| - <StaticResource x:Key="ButtonBackgroundPointerOver" ResourceKey="SubtleFillColorTertiaryBrush" /> |
190 |
| - <StaticResource x:Key="ButtonBackgroundPressed" ResourceKey="SubtleFillColorSecondaryBrush" /> |
191 |
| - </ResourceDictionary> |
192 |
| - </Button.Resources> |
193 |
| - |
194 |
| - <FlyoutBase.AttachedFlyout> |
195 |
| - <MenuFlyout |
196 |
| - x:Name="PART_ItemChevronDropDownMenuFlyout" |
197 |
| - Placement="BottomEdgeAlignedLeft" |
198 |
| - ScrollViewer.VerticalScrollBarVisibility="Auto" |
199 |
| - ScrollViewer.VerticalScrollMode="Auto"> |
200 |
| - <MenuFlyout.MenuFlyoutPresenterStyle> |
201 |
| - <Style TargetType="MenuFlyoutPresenter"> |
202 |
| - <Setter Property="MaxHeight" Value="400" /> |
203 |
| - <!-- Workaround for https://github.com/files-community/Files/issues/13078 --> |
204 |
| - <Setter Target="HighContrastAdjustment" Value="None" /> |
205 |
| - </Style> |
206 |
| - </MenuFlyout.MenuFlyoutPresenterStyle> |
207 |
| - </MenuFlyout> |
208 |
| - </FlyoutBase.AttachedFlyout> |
209 |
| - |
210 |
| - <AnimatedIcon |
211 |
| - x:Name="PART_ItemChevronIcon" |
212 |
| - Width="{StaticResource BreadcrumbBarChevronFontSize}" |
213 |
| - Height="{StaticResource BreadcrumbBarChevronFontSize}" |
214 |
| - HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 125 | + AutomationProperties.Name="{TemplateBinding Content}" |
| 126 | + Background="{TemplateBinding Background}" |
| 127 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 128 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 129 | + Control.IsTemplateFocusTarget="True" |
| 130 | + CornerRadius="{TemplateBinding CornerRadius}" |
| 131 | + ToolTipService.ToolTip="{TemplateBinding ItemToolTip}" |
| 132 | + UseSystemFocusVisuals="True"> |
| 133 | + <Button.Resources> |
| 134 | + <SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="{ThemeResource SubtleFillColorSecondary}" /> |
| 135 | + <SolidColorBrush x:Key="ButtonBackgroundPressed" Color="{ThemeResource SubtleFillColorTertiary}" /> |
| 136 | + </Button.Resources> |
| 137 | + |
| 138 | + <FlyoutBase.AttachedFlyout> |
| 139 | + <MenuFlyout |
| 140 | + x:Name="PART_ItemEllipsisDropDownMenuFlyout" |
| 141 | + Placement="Bottom" |
| 142 | + ScrollViewer.VerticalScrollBarVisibility="Auto" |
| 143 | + ScrollViewer.VerticalScrollMode="Auto"> |
| 144 | + <MenuFlyout.MenuFlyoutPresenterStyle> |
| 145 | + <Style TargetType="MenuFlyoutPresenter"> |
| 146 | + <Setter Property="MaxHeight" Value="400" /> |
| 147 | + <!-- Workaround for https://github.com/files-community/Files/issues/13078 --> |
| 148 | + <Setter Target="HighContrastAdjustment" Value="None" /> |
| 149 | + </Style> |
| 150 | + </MenuFlyout.MenuFlyoutPresenterStyle> |
| 151 | + </MenuFlyout> |
| 152 | + </FlyoutBase.AttachedFlyout> |
| 153 | + |
| 154 | + <ContentPresenter |
| 155 | + x:Name="PART_ItemContentPresenter" |
| 156 | + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 157 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| 158 | + AutomationProperties.AccessibilityView="Raw" |
| 159 | + Content="{TemplateBinding Content}" |
| 160 | + ContentTemplate="{TemplateBinding ContentTemplate}" |
| 161 | + ContentTransitions="{TemplateBinding ContentTransitions}" |
| 162 | + FontFamily="{TemplateBinding FontFamily}" |
| 163 | + FontSize="{TemplateBinding FontSize}" |
| 164 | + FontWeight="{TemplateBinding FontWeight}" |
| 165 | + Foreground="{ThemeResource BreadcrumbBarForegroundBrush}" |
| 166 | + TextLineBounds="Tight" /> |
| 167 | + |
| 168 | + </Button> |
| 169 | + |
| 170 | + <!-- Chevron --> |
| 171 | + <Button |
| 172 | + x:Name="PART_ItemChevronButton" |
| 173 | + Margin="{StaticResource BreadcrumbBarItemMargin}" |
| 174 | + Padding="{StaticResource BreadcrumbBarChevronPadding}" |
215 | 175 | VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
216 |
| - AnimatedIcon.State="NormalOff" |
217 | 176 | AutomationProperties.AccessibilityView="Raw"
|
218 |
| - Foreground="{ThemeResource BreadcrumbBarForegroundBrush}" |
219 |
| - MirroredWhenRightToLeft="True" |
220 |
| - RenderTransformOrigin="0.5, 0.5"> |
221 |
| - <AnimatedIcon.FallbackIconSource> |
222 |
| - <FontIconSource |
223 |
| - FontSize="{StaticResource BreadcrumbBarChevronFontSize}" |
224 |
| - Glyph="" |
225 |
| - IsTextScaleFactorEnabled="False" /> |
226 |
| - </AnimatedIcon.FallbackIconSource> |
227 |
| - <animatedvisuals:AnimatedChevronRightDownSmallVisualSource /> |
228 |
| - </AnimatedIcon> |
229 |
| - |
230 |
| - </Button> |
| 177 | + AutomationProperties.Name="Chevron" |
| 178 | + Background="{TemplateBinding Background}" |
| 179 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 180 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 181 | + CornerRadius="{StaticResource BreadcrumbBarChevronCornerRaduis}" |
| 182 | + Style="{StaticResource BreadcrumbBarItemChevronButtonStyle}" |
| 183 | + ToolTipService.ToolTip="{TemplateBinding ChevronToolTip}" |
| 184 | + UseSystemFocusVisuals="True"> |
| 185 | + <Button.Resources> |
| 186 | + <SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="{ThemeResource SubtleFillColorSecondary}" /> |
| 187 | + <SolidColorBrush x:Key="ButtonBackgroundPressed" Color="{ThemeResource SubtleFillColorTertiary}" /> |
| 188 | + </Button.Resources> |
| 189 | + |
| 190 | + <FlyoutBase.AttachedFlyout> |
| 191 | + <MenuFlyout |
| 192 | + x:Name="PART_ItemChevronDropDownMenuFlyout" |
| 193 | + Placement="BottomEdgeAlignedLeft" |
| 194 | + ScrollViewer.VerticalScrollBarVisibility="Auto" |
| 195 | + ScrollViewer.VerticalScrollMode="Auto"> |
| 196 | + <MenuFlyout.MenuFlyoutPresenterStyle> |
| 197 | + <Style TargetType="MenuFlyoutPresenter"> |
| 198 | + <Setter Property="MaxHeight" Value="400" /> |
| 199 | + <!-- Workaround for https://github.com/files-community/Files/issues/13078 --> |
| 200 | + <Setter Target="HighContrastAdjustment" Value="None" /> |
| 201 | + </Style> |
| 202 | + </MenuFlyout.MenuFlyoutPresenterStyle> |
| 203 | + </MenuFlyout> |
| 204 | + </FlyoutBase.AttachedFlyout> |
| 205 | + |
| 206 | + <AnimatedIcon |
| 207 | + x:Name="PART_ItemChevronIcon" |
| 208 | + Width="{StaticResource BreadcrumbBarChevronFontSize}" |
| 209 | + Height="{StaticResource BreadcrumbBarChevronFontSize}" |
| 210 | + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 211 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| 212 | + AnimatedIcon.State="NormalOff" |
| 213 | + AutomationProperties.AccessibilityView="Raw" |
| 214 | + Foreground="{ThemeResource BreadcrumbBarForegroundBrush}" |
| 215 | + MirroredWhenRightToLeft="True" |
| 216 | + RenderTransformOrigin="0.5, 0.5"> |
| 217 | + <AnimatedIcon.FallbackIconSource> |
| 218 | + <FontIconSource |
| 219 | + FontSize="{StaticResource BreadcrumbBarChevronFontSize}" |
| 220 | + Glyph="" |
| 221 | + IsTextScaleFactorEnabled="False" /> |
| 222 | + </AnimatedIcon.FallbackIconSource> |
| 223 | + <animatedvisuals:AnimatedChevronRightDownSmallVisualSource /> |
| 224 | + </AnimatedIcon> |
| 225 | + |
| 226 | + </Button> |
| 227 | + </StackPanel> |
231 | 228 |
|
232 | 229 | <VisualStateManager.VisualStateGroups>
|
233 | 230 |
|
|
0 commit comments