|
2 | 2 | x:Class="Files.Controls.RibbonPage"
|
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
5 |
| - xmlns:local="using:Files.Controls" |
| 5 | + xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" |
6 | 6 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
| 7 | + xmlns:local="using:Files.Controls" |
7 | 8 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
8 |
| - xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" |
9 |
| - mc:Ignorable="d" |
10 | 9 | d:DesignHeight="300"
|
11 |
| - d:DesignWidth="400"> |
| 10 | + d:DesignWidth="400" |
| 11 | + mc:Ignorable="d"> |
12 | 12 | <UserControl.Resources>
|
13 | 13 | <Style x:Key="GridViewItemStyle1" TargetType="GridViewItem">
|
14 |
| - <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/> |
15 |
| - <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/> |
16 |
| - <Setter Property="Background" Value="{ThemeResource GridViewItemBackground}"/> |
17 |
| - <Setter Property="Foreground" Value="{ThemeResource GridViewItemForeground}"/> |
18 |
| - <Setter Property="TabNavigation" Value="Local"/> |
19 |
| - <Setter Property="IsHoldingEnabled" Value="True"/> |
20 |
| - <Setter Property="HorizontalContentAlignment" Value="Center"/> |
21 |
| - <Setter Property="VerticalContentAlignment" Value="Center"/> |
22 |
| - <Setter Property="Margin" Value="0,0,4,4"/> |
23 |
| - <Setter Property="BorderThickness" Value="0"/> |
24 |
| - <Setter Property="MinWidth" Value="{ThemeResource GridViewItemMinWidth}"/> |
25 |
| - <Setter Property="MinHeight" Value="{ThemeResource GridViewItemMinHeight}"/> |
26 |
| - <Setter Property="AllowDrop" Value="False"/> |
27 |
| - <Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}"/> |
28 |
| - <Setter Property="FocusVisualMargin" Value="-2"/> |
| 14 | + <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" /> |
| 15 | + <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" /> |
| 16 | + <Setter Property="Background" Value="{ThemeResource GridViewItemBackground}" /> |
| 17 | + <Setter Property="Foreground" Value="{ThemeResource GridViewItemForeground}" /> |
| 18 | + <Setter Property="TabNavigation" Value="Local" /> |
| 19 | + <Setter Property="IsHoldingEnabled" Value="True" /> |
| 20 | + <Setter Property="HorizontalContentAlignment" Value="Center" /> |
| 21 | + <Setter Property="VerticalContentAlignment" Value="Center" /> |
| 22 | + <Setter Property="Margin" Value="0,0,4,4" /> |
| 23 | + <Setter Property="BorderThickness" Value="0" /> |
| 24 | + <Setter Property="MinWidth" Value="{ThemeResource GridViewItemMinWidth}" /> |
| 25 | + <Setter Property="MinHeight" Value="{ThemeResource GridViewItemMinHeight}" /> |
| 26 | + <Setter Property="AllowDrop" Value="False" /> |
| 27 | + <Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" /> |
| 28 | + <Setter Property="FocusVisualMargin" Value="-2" /> |
29 | 29 | <Setter Property="Template">
|
30 | 30 | <Setter.Value>
|
31 | 31 | <ControlTemplate TargetType="GridViewItem">
|
32 |
| - <ListViewItemPresenter BorderThickness="0" x:Name="Root" CheckBrush="{ThemeResource GridViewItemCheckBrush}" ContentMargin="{TemplateBinding Padding}" CheckBoxBrush="{ThemeResource GridViewItemCheckBoxBrush}" ContentTransitions="{TemplateBinding ContentTransitions}" CheckMode="{ThemeResource GridViewItemCheckMode}" DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}" DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}" DragBackground="{ThemeResource GridViewItemDragBackground}" DragForeground="{ThemeResource GridViewItemDragForeground}" FocusBorderBrush="{ThemeResource GridViewItemFocusBorderBrush}" FocusVisualMargin="{TemplateBinding FocusVisualMargin}" FocusSecondaryBorderBrush="{ThemeResource GridViewItemFocusSecondaryBorderBrush}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Control.IsTemplateFocusTarget="True" PressedBackground="{ThemeResource GridViewItemBackgroundPressed}" PlaceholderBackground="{ThemeResource GridViewItemPlaceholderBackground}" PointerOverForeground="{ThemeResource GridViewItemForegroundPointerOver}" PointerOverBackground="{ThemeResource GridViewItemBackgroundPointerOver}" RevealBorderThickness="0" ReorderHintOffset="{ThemeResource GridViewItemReorderHintThemeOffset}" RevealBorderBrush="{ThemeResource GridViewItemRevealBorderBrush}" RevealBackground="{ThemeResource GridViewItemRevealBackground}" SelectedForeground="{ThemeResource GridViewItemForegroundSelected}" SelectionCheckMarkVisualEnabled="{ThemeResource GridViewItemSelectionCheckMarkVisualEnabled}" SelectedBackground="{ThemeResource GridViewItemBackgroundSelected}" SelectedPressedBackground="{ThemeResource GridViewItemBackgroundSelectedPressed}" SelectedPointerOverBackground="{ThemeResource GridViewItemBackgroundSelectedPointerOver}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"> |
| 32 | + <ListViewItemPresenter |
| 33 | + x:Name="Root" |
| 34 | + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 35 | + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
| 36 | + BorderThickness="0" |
| 37 | + CheckBoxBrush="{ThemeResource GridViewItemCheckBoxBrush}" |
| 38 | + CheckBrush="{ThemeResource GridViewItemCheckBrush}" |
| 39 | + CheckMode="{ThemeResource GridViewItemCheckMode}" |
| 40 | + ContentMargin="{TemplateBinding Padding}" |
| 41 | + ContentTransitions="{TemplateBinding ContentTransitions}" |
| 42 | + Control.IsTemplateFocusTarget="True" |
| 43 | + DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}" |
| 44 | + DragBackground="{ThemeResource GridViewItemDragBackground}" |
| 45 | + DragForeground="{ThemeResource GridViewItemDragForeground}" |
| 46 | + DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}" |
| 47 | + FocusBorderBrush="{ThemeResource GridViewItemFocusBorderBrush}" |
| 48 | + FocusSecondaryBorderBrush="{ThemeResource GridViewItemFocusSecondaryBorderBrush}" |
| 49 | + FocusVisualMargin="{TemplateBinding FocusVisualMargin}" |
| 50 | + PlaceholderBackground="{ThemeResource GridViewItemPlaceholderBackground}" |
| 51 | + PointerOverBackground="{ThemeResource GridViewItemBackgroundPointerOver}" |
| 52 | + PointerOverForeground="{ThemeResource GridViewItemForegroundPointerOver}" |
| 53 | + PressedBackground="{ThemeResource GridViewItemBackgroundPressed}" |
| 54 | + ReorderHintOffset="{ThemeResource GridViewItemReorderHintThemeOffset}" |
| 55 | + RevealBackground="{ThemeResource GridViewItemRevealBackground}" |
| 56 | + RevealBorderBrush="{ThemeResource GridViewItemRevealBorderBrush}" |
| 57 | + RevealBorderThickness="0" |
| 58 | + SelectedBackground="{ThemeResource GridViewItemBackgroundSelected}" |
| 59 | + SelectedForeground="{ThemeResource GridViewItemForegroundSelected}" |
| 60 | + SelectedPointerOverBackground="{ThemeResource GridViewItemBackgroundSelectedPointerOver}" |
| 61 | + SelectedPressedBackground="{ThemeResource GridViewItemBackgroundSelectedPressed}" |
| 62 | + SelectionCheckMarkVisualEnabled="{ThemeResource GridViewItemSelectionCheckMarkVisualEnabled}"> |
33 | 63 | <VisualStateManager.VisualStateGroups>
|
34 | 64 | <VisualStateGroup x:Name="CommonStates">
|
35 |
| - <VisualState x:Name="Normal"/> |
36 |
| - <VisualState x:Name="Selected"/> |
37 |
| - <VisualState x:Name="PointerOver"/> |
38 |
| - <VisualState x:Name="PointerOverSelected"/> |
39 |
| - <VisualState x:Name="PointerOverPressed"/> |
40 |
| - <VisualState x:Name="Pressed"/> |
41 |
| - <VisualState x:Name="PressedSelected"/> |
| 65 | + <VisualState x:Name="Normal" /> |
| 66 | + <VisualState x:Name="Selected" /> |
| 67 | + <VisualState x:Name="PointerOver" /> |
| 68 | + <VisualState x:Name="PointerOverSelected" /> |
| 69 | + <VisualState x:Name="PointerOverPressed" /> |
| 70 | + <VisualState x:Name="Pressed" /> |
| 71 | + <VisualState x:Name="PressedSelected" /> |
42 | 72 | </VisualStateGroup>
|
43 | 73 | <VisualStateGroup x:Name="DisabledStates">
|
44 |
| - <VisualState x:Name="Enabled"/> |
| 74 | + <VisualState x:Name="Enabled" /> |
45 | 75 | <VisualState x:Name="Disabled">
|
46 | 76 | <VisualState.Setters>
|
47 |
| - <Setter Target="Root.RevealBorderThickness" Value="0"/> |
| 77 | + <Setter Target="Root.RevealBorderThickness" Value="0" /> |
48 | 78 | </VisualState.Setters>
|
49 | 79 | </VisualState>
|
50 | 80 | </VisualStateGroup>
|
|
56 | 86 | </Style>
|
57 | 87 | </UserControl.Resources>
|
58 | 88 |
|
59 |
| - <controls:WrapPanel Orientation="Horizontal" x:Name="PageContentPanel"> |
60 |
| - |
61 |
| - </controls:WrapPanel> |
| 89 | + <controls:WrapPanel x:Name="PageContentPanel" Orientation="Horizontal" /> |
62 | 90 | </UserControl>
|
0 commit comments