|
13 | 13 | Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" |
14 | 14 | xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters" |
15 | 15 | xmlns:ex="using:Microsoft.Toolkit.Uwp.UI.Extensions" |
16 | | - xmlns:Windows10version1809="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 7)"> |
| 16 | + xmlns:Windows10version1809="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 7)" |
| 17 | + xmlns:Windows10version1903="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 8)"> |
17 | 18 | <Page.Resources> |
18 | 19 | <Style x:Key="ListViewHeaderItemStyle1" TargetType="ListViewHeaderItem"> |
19 | 20 | <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/> |
|
905 | 906 | <AppBarSeparator/> |
906 | 907 | <AppBarButton Click="DeleteButton_Click" Name="DeleteButton" IsEnabled="{x:Bind local:App.HomeItems.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Delete" Icon="Delete"/> |
907 | 908 | <AppBarButton Click="RenameButton_Click" Name="RenameButton" IsEnabled="{x:Bind local:App.HomeItems.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Rename" Icon="Rename"/> |
908 | | - <AppBarButton Click="AddItem_Click" Name="AddItem" IsEnabled="{x:Bind local:App.AlwaysPresentCommands.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Add Item" Icon="Add"/> |
| 909 | + <AppBarButton Click="AddItem_Click" Name="addItemButton" IsEnabled="{x:Bind local:App.AlwaysPresentCommands.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Add Item" Icon="Add"/> |
909 | 910 | <AppBarSeparator/> |
910 | | - <AppBarButton IsEnabled="{x:Bind local:App.HomeItems.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Properties"> |
| 911 | + <AppBarButton Click="ShowPropertiesButton_Click" Name="ShowPropertiesButton" IsEnabled="{x:Bind local:App.HomeItems.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="Properties"> |
911 | 912 | <AppBarButton.Icon> |
912 | 913 | <FontIcon Glyph=""/> |
913 | 914 | </AppBarButton.Icon> |
|
1088 | 1089 | <Frame Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Name="ItemDisplayFrame"/> |
1089 | 1090 |
|
1090 | 1091 | </SplitView> |
1091 | | - <ContentDialog DefaultButton="Primary" PrimaryButtonClick="PermissionDialog_PrimaryButtonClick" PrimaryButtonText="Grant Permission" Name="PermissionDialog" Title="Welcome to Files UWP"> |
| 1092 | + <ContentDialog Grid.RowSpan="4" DefaultButton="Primary" PrimaryButtonClick="PermissionDialog_PrimaryButtonClick" PrimaryButtonText="Grant Permission" Name="PermissionDialog" Title="Welcome to Files UWP"> |
| 1093 | + <Windows10version1903:ContentDialog.Shadow> |
| 1094 | + <Windows10version1903:ThemeShadow/> |
| 1095 | + </Windows10version1903:ContentDialog.Shadow> |
1092 | 1096 | <Grid> |
1093 | 1097 | <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! "/> |
1094 | 1098 | </Grid> |
1095 | 1099 | </ContentDialog> |
1096 | | - <ContentDialog Background="{StaticResource ApplicationPageBackgroundThemeBrush}" BorderThickness="0" Name="AddDialog" PrimaryButtonText="Cancel"> |
| 1100 | + <ContentDialog Grid.RowSpan="4" Loaded="AddDialog_Loaded" Background="{StaticResource ApplicationPageBackgroundThemeBrush}" BorderThickness="0" Name="AddDialog" PrimaryButtonText="Cancel"> |
| 1101 | + <Windows10version1903:ContentDialog.Shadow> |
| 1102 | + <Windows10version1903:ThemeShadow/> |
| 1103 | + </Windows10version1903:ContentDialog.Shadow> |
1097 | 1104 | <Frame Width="450" Name="AddDialogFrame"/> |
1098 | 1105 | </ContentDialog> |
1099 | | - <ContentDialog Background="{StaticResource ApplicationPageBackgroundThemeBrush}" DefaultButton="Primary" Title="Name this item" BorderThickness="0" PrimaryButtonClick="NameDialog_PrimaryButtonClick" Name="NameDialog" PrimaryButtonText="Set Name" SecondaryButtonText="Cancel"> |
| 1106 | + <ContentDialog Grid.RowSpan="4" Background="{StaticResource ApplicationPageBackgroundThemeBrush}" DefaultButton="Primary" Title="Name this item" BorderThickness="0" SecondaryButtonClick="NameDialog_SecondaryButtonClick" PrimaryButtonClick="NameDialog_PrimaryButtonClick" Name="NameDialog" PrimaryButtonText="Set Name" SecondaryButtonText="Cancel"> |
| 1107 | + <Windows10version1903:ContentDialog.Shadow> |
| 1108 | + <Windows10version1903:ThemeShadow/> |
| 1109 | + </Windows10version1903:ContentDialog.Shadow> |
1100 | 1110 | <Grid> |
1101 | 1111 | <TextBox Padding="8" Name="RenameInput" PlaceholderText="Enter an item name without the file extension" Width="300"/> |
1102 | 1112 | </Grid> |
1103 | 1113 | </ContentDialog> |
| 1114 | + <ContentDialog Name="PropertiesDialog" Grid.RowSpan="4" CloseButtonText="Cancel" PrimaryButtonText="OK" DefaultButton="Primary" SecondaryButtonText="Apply"> |
| 1115 | + <Windows10version1903:ContentDialog.Shadow> |
| 1116 | + <Windows10version1903:ThemeShadow/> |
| 1117 | + </Windows10version1903:ContentDialog.Shadow> |
| 1118 | + <Frame Width="400" Height="450" Name="propertiesFrame" /> |
| 1119 | + </ContentDialog> |
1104 | 1120 |
|
1105 | 1121 | </Grid> |
1106 | 1122 | </Page> |
0 commit comments