|
34 | 34 | </Setter.Value>
|
35 | 35 | </Setter>
|
36 | 36 | </Style>
|
| 37 | + |
37 | 38 | <SolidColorBrush x:Key="TabViewItemHeaderBackgroundSelected" Color="{StaticResource SystemChromeLowColor}"/>
|
38 | 39 | <SolidColorBrush x:Key="TabViewItemHeaderBackgroundPointerOver" Color="{StaticResource SystemChromeLowColor}"/>
|
39 | 40 | <SolidColorBrush x:Key="TabViewItemHeaderBackgroundPressed" Color="{StaticResource SystemChromeLowColor}"/>
|
|
865 | 866 | </Setter.Value>
|
866 | 867 | </Setter>
|
867 | 868 | </Style>
|
| 869 | + |
| 870 | + |
868 | 871 | </Page.Resources>
|
869 | 872 |
|
870 | 873 | <Grid Padding="0,0,0,0">
|
|
873 | 876 | <RowDefinition Height="*"/>
|
874 | 877 | </Grid.RowDefinitions>
|
875 | 878 | <Grid Grid.Row="0" Canvas.ZIndex="2">
|
876 |
| - <Custom:DropShadowPanel OffsetY="-2" HorizontalContentAlignment="Stretch"> |
| 879 | + <Custom:DropShadowPanel OffsetY="-2" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> |
877 | 880 | <StackPanel Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Orientation="Vertical">
|
878 |
| - <Custom:TabView x:Name="Ribbon" SelectedIndex="1" TabWidthBehavior="Actual" Background="Transparent" Template="{StaticResource TabViewTemplate1}"> |
879 |
| - <Custom:TabViewItem BorderThickness="0" Template="{StaticResource TabViewItemFluentTemplate}" Header="File"> |
880 |
| - <CommandBar Background="Transparent" IsOpen="True" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
| 881 | + <Custom:TabView x:Name="Ribbon" TabWidthBehavior="Actual" Background="Transparent" Template="{StaticResource TabViewTemplate1}"> |
| 882 | + <Custom:TabViewItem Template="{StaticResource TabViewItemFluentTemplate}" BorderThickness="0" Header="File"> |
| 883 | + <CommandBar Background="Transparent" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
881 | 884 | <CommandBar.Content>
|
882 |
| - <CommandBar Background="Transparent" IsOpen="True" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
| 885 | + <CommandBar Background="Transparent" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
883 | 886 | <AppBarButton Label="Open new window" Icon="NewWindow"/>
|
884 | 887 | <AppBarButton Label="Settings" Icon="Setting"/>
|
885 | 888 | </CommandBar>
|
886 | 889 | </CommandBar.Content>
|
887 | 890 | </CommandBar>
|
888 | 891 | </Custom:TabViewItem>
|
889 |
| - <Custom:TabViewItem IsSelected="True" BorderThickness="0" Template="{StaticResource TabViewItemFluentTemplate}" Header="Home"> |
890 |
| - <CommandBar Background="Transparent" IsOpen="True" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
| 892 | + <Custom:TabViewItem Template="{StaticResource TabViewItemFluentTemplate}" IsSelected="True" BorderThickness="0" Header="Home"> |
| 893 | + <CommandBar Background="Transparent" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
891 | 894 | <CommandBar.Content>
|
892 |
| - <CommandBar Background="Transparent" IsOpen="True" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
| 895 | + <CommandBar Background="Transparent" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
893 | 896 | <AppBarButton IsEnabled="{x:Bind local:App.HomeItems.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Cut" Icon="Cut"/>
|
894 | 897 | <AppBarButton IsEnabled="{x:Bind local:App.HomeItems.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Copy" Icon="Copy"/>
|
895 | 898 | <AppBarButton IsEnabled="{x:Bind local:App.HomeItems.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Paste" Icon="Paste"/>
|
|
913 | 916 | </CommandBar.Content>
|
914 | 917 | </CommandBar>
|
915 | 918 | </Custom:TabViewItem>
|
916 |
| - <Custom:TabViewItem BorderThickness="0" Template="{StaticResource TabViewItemFluentTemplate}" Header="Share"> |
917 |
| - <CommandBar Background="Transparent" IsOpen="True" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
| 919 | + <Custom:TabViewItem Template="{StaticResource TabViewItemFluentTemplate}" BorderThickness="0" Header="Share"> |
| 920 | + <CommandBar Background="Transparent" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
918 | 921 | <CommandBar.Content>
|
919 |
| - <CommandBar Background="Transparent" IsOpen="True" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
| 922 | + <CommandBar Background="Transparent" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
920 | 923 | <AppBarButton IsEnabled="{x:Bind local:App.ShareItems.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Share" Icon="Share"/>
|
921 | 924 | </CommandBar>
|
922 | 925 | </CommandBar.Content>
|
923 | 926 | </CommandBar>
|
924 | 927 | </Custom:TabViewItem>
|
925 |
| - <Custom:TabViewItem BorderThickness="0" Template="{StaticResource TabViewItemFluentTemplate}" Header="Layout"> |
926 |
| - <CommandBar Background="Transparent" IsOpen="True" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
| 928 | + <Custom:TabViewItem Template="{StaticResource TabViewItemFluentTemplate}" BorderThickness="0" Header="Layout"> |
| 929 | + <CommandBar Background="Transparent" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
927 | 930 | <CommandBar.Content>
|
928 |
| - <CommandBar Background="Transparent" IsOpen="True" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
| 931 | + <CommandBar Background="Transparent" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right"> |
929 | 932 | <AppBarButton IsEnabled="{x:Bind local:App.LayoutItems.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Layout Mode">
|
930 | 933 | <AppBarButton.Icon>
|
931 | 934 | <FontIcon Glyph="" FontFamily="Segoe MDL2 Assets"/>
|
|
988 | 991 | </Custom:DropShadowPanel>
|
989 | 992 | </Grid>
|
990 | 993 |
|
991 |
| - <SplitView Canvas.ZIndex="0" DisplayMode="Inline" OpenPaneLength="225" IsPaneOpen="True" HorizontalAlignment="Stretch" Grid.RowSpan="1" Grid.Row="1" VerticalAlignment="Stretch" PaneBackground="{ThemeResource SystemControlChromeHighAcrylicWindowMediumBrush}" > |
| 994 | + <SplitView DisplayMode="Inline" OpenPaneLength="225" IsPaneOpen="True" HorizontalAlignment="Stretch" Grid.RowSpan="1" Grid.Row="1" VerticalAlignment="Stretch" PaneBackground="{ThemeResource SystemControlChromeHighAcrylicWindowMediumBrush}" > |
992 | 995 | <SplitView.Pane>
|
993 | 996 | <ScrollViewer>
|
994 | 997 | <Grid>
|
|
1076 | 1079 | </ScrollViewer>
|
1077 | 1080 | </SplitView.Pane>
|
1078 | 1081 |
|
1079 |
| - <Frame IsRightTapEnabled="True" Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Name="ItemDisplayFrame"/> |
| 1082 | + <Frame Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Name="ItemDisplayFrame"/> |
1080 | 1083 |
|
1081 | 1084 | </SplitView>
|
1082 |
| - <ContentDialog Grid.RowSpan="2" DefaultButton="Primary" PrimaryButtonClick="PermissionDialog_PrimaryButtonClick" PrimaryButtonText="Grant Permission" Name="PermissionDialog" Title="Welcome to Files UWP"> |
| 1085 | + <ContentDialog DefaultButton="Primary" PrimaryButtonClick="PermissionDialog_PrimaryButtonClick" PrimaryButtonText="Grant Permission" Name="PermissionDialog" Title="Welcome to Files UWP"> |
1083 | 1086 | <Grid>
|
1084 | 1087 | <TextBlock TextWrapping="WrapWholeWords" Text="To get started, we need you to grant us permission to show you your files. This will open a Settings page where you can grant us permission. Files will close in the process, so don't be afraid to come back! "/>
|
1085 | 1088 | </Grid>
|
1086 | 1089 | </ContentDialog>
|
1087 |
| - <ContentDialog Background="{StaticResource ApplicationPageBackgroundThemeBrush}" BorderThickness="0" Name="AddDialog" PrimaryButtonText="Cancel" Grid.RowSpan="4"> |
| 1090 | + <ContentDialog Background="{StaticResource ApplicationPageBackgroundThemeBrush}" BorderThickness="0" Name="AddDialog" PrimaryButtonText="Cancel"> |
1088 | 1091 | <Frame Width="450" Name="AddDialogFrame"/>
|
1089 | 1092 | </ContentDialog>
|
1090 |
| - <ContentDialog Background="{StaticResource ApplicationPageBackgroundThemeBrush}" DefaultButton="Primary" Title="Name this item" BorderThickness="0" PrimaryButtonClick="NameDialog_PrimaryButtonClick" Name="NameDialog" PrimaryButtonText="Set Name" SecondaryButtonText="Cancel" Grid.RowSpan="4"> |
| 1093 | + <ContentDialog Background="{StaticResource ApplicationPageBackgroundThemeBrush}" DefaultButton="Primary" Title="Name this item" BorderThickness="0" PrimaryButtonClick="NameDialog_PrimaryButtonClick" Name="NameDialog" PrimaryButtonText="Set Name" SecondaryButtonText="Cancel"> |
1091 | 1094 | <Grid>
|
1092 | 1095 | <TextBox Padding="8" Name="RenameInput" PlaceholderText="Enter an item name without the file extension" Width="300"/>
|
1093 | 1096 | </Grid>
|
|
0 commit comments