|
10 | 10 |
|
11 | 11 | This file contains the markup code for the regular item layout -->
|
12 | 12 |
|
13 |
| - |
| 13 | + |
14 | 14 | <Page
|
15 | 15 | x:Class="Files.GenericFileBrowser"
|
16 | 16 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
131 | 131 | </VisualStateManager.VisualStateGroups>
|
132 | 132 |
|
133 | 133 |
|
134 |
| - <Grid Tag="{x:Bind Tag, Mode=OneWay}" Background="White" Margin="0,0,0,0"> |
135 |
| - <TextBlock Name="EmptyText" Visibility="{x:Bind local2:ItemViewModel.TextState.isVisible, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Text="This folder is empty." TextWrapping="Wrap" VerticalAlignment="Top" Margin="475,275,0,0" Canvas.ZIndex="5"/> |
136 |
| - <Grid DataContext="{Binding BackObject}" HorizontalAlignment="Stretch" Height="200" VerticalAlignment="Top"> |
137 |
| - <Button BorderThickness="1.5" Style="{ThemeResource FluentHistoryButton}" x:FieldModifier="public" IsEnabled="{x:Bind local2:ItemViewModel.BS.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" x:Name="Back" Foreground="Black" Content="" FontFamily="Segoe MDL2 Assets" Background="#33FFFFFF" FontSize="20" Margin="40,52,0,0" VerticalAlignment="Top" Height="50" Width="50"> |
138 |
| - |
139 |
| - </Button> |
140 |
| - <Grid DataContext="{Binding ForwardObject}"> |
141 |
| - <Button BorderThickness="1.5" Style="{ThemeResource ButtonRevealStyle}" IsEnabled="{x:Bind local2:ItemViewModel.FS.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" x:Name="Forward" Foreground="Black" Content="" FontFamily="Segoe MDL2 Assets" Background="#33FFFFFF" Margin="95,52,0,0" FontSize="20" VerticalAlignment="Top" Height="50" Width="50" HorizontalAlignment="Left"/> |
142 |
| - </Grid> |
143 |
| - <Button x:Name="Refresh" BorderThickness="1.5" Style="{ThemeResource ButtonRevealStyle}" Foreground="Black" Content="" FontFamily="Segoe MDL2 Assets" Background="#33FFFFFF" FontSize="20" Margin="150,52,0,0" VerticalAlignment="Top" Width="50" Height="50" /> |
144 |
| - <Button x:Name="Menu" BorderThickness="1.5" Style="{ThemeResource ButtonRevealStyle}" Foreground="Black" Content="" FontFamily="Segoe MDL2 Assets" Background="#33FFFFFF" FontSize="20" Margin="150,52,40,0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="50" Height="50"> |
145 |
| - <Button.Flyout> |
146 |
| - <MenuFlyout> |
147 |
| - <MenuFlyoutItem Name="NewItem" Text="New..."/> |
148 |
| - <MenuFlyoutItem Name="PasteItem" Text="Paste"/> |
149 |
| - <MenuFlyoutItem Name="CopyPath" Text="Copy Path"/> |
150 |
| - <MenuFlyoutItem Name="ViewModeChange" Text="Change View Mode..."/> |
151 |
| - </MenuFlyout> |
152 |
| - </Button.Flyout> |
153 |
| - </Button> |
154 |
| - <ScrollViewer HorizontalScrollMode="Auto" HorizontalScrollBarVisibility="Auto" Margin="50,126,50,25" HorizontalAlignment="Stretch" VerticalAlignment="Top" > |
155 |
| - <TextBlock x:Name="VisiblePath" Text="{x:Bind local:GenericFileBrowser.P.path ,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="0,0,0,0" FontFamily="Segoe UI Black" FontWeight="Bold" FontSize="32" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" VerticalAlignment="Top" HorizontalAlignment="Stretch"></TextBlock> |
156 |
| - </ScrollViewer> |
| 134 | + <Grid Tag="{x:Bind Tag, Mode=OneWay}" Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Padding="50,0,50,0"> |
| 135 | + <Grid.RowDefinitions> |
| 136 | + <RowDefinition Height="20*"/> |
| 137 | + <RowDefinition Height="80*"/> |
| 138 | + </Grid.RowDefinitions> |
| 139 | + <TextBlock Name="EmptyText" Visibility="{x:Bind local2:ItemViewModel.TextState.isVisible, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Text="This folder is empty." TextWrapping="Wrap" VerticalAlignment="Top" Margin="475,100,0,0" Canvas.ZIndex="5" Grid.Row="1"/> |
| 140 | + <Grid DataContext="{Binding BackObject}" VerticalAlignment="Stretch" Margin="0,0,0,0"> |
| 141 | + <StackPanel Orientation="Horizontal" Margin="0,0,0,25"> |
| 142 | + <AppBarButton Style="{ThemeResource AppBarButtonRevealStyle}" x:FieldModifier="public" IsEnabled="{x:Bind local2:ItemViewModel.BS.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" x:Name="Back" Content="" FontFamily="Segoe MDL2 Assets" FontSize="20" VerticalAlignment="Center" Height="50" Width="50"> |
157 | 143 |
|
| 144 | + </AppBarButton> |
| 145 | + <Grid DataContext="{Binding ForwardObject}" VerticalAlignment="Center"> |
| 146 | + <AppBarButton Style="{ThemeResource AppBarButtonRevealStyle}" IsEnabled="{x:Bind local2:ItemViewModel.FS.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" x:Name="Forward" Content="" FontFamily="Segoe MDL2 Assets" FontSize="20" VerticalAlignment="Top" Height="50" Width="50" HorizontalAlignment="Left"/> |
| 147 | + </Grid> |
| 148 | + <AppBarButton x:Name="Refresh" Style="{ThemeResource AppBarButtonRevealStyle}" Content="" FontFamily="Segoe MDL2 Assets" FontSize="20" VerticalAlignment="Center" Width="50" Height="50" /> |
| 149 | + </StackPanel> |
| 150 | + |
| 151 | + <AppBarButton x:Name="Menu" Style="{ThemeResource AppBarButtonRevealStyle}" Content="" FontFamily="Segoe MDL2 Assets" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Right" Width="50" Height="50"> |
| 152 | + <Button.Flyout> |
| 153 | + <MenuFlyout> |
| 154 | + <MenuFlyoutItem Name="NewItem" Text="New..."/> |
| 155 | + <MenuFlyoutItem Name="PasteItem" Text="Paste"/> |
| 156 | + <MenuFlyoutItem Name="CopyPath" Text="Copy Path"/> |
| 157 | + <MenuFlyoutItem Name="ViewModeChange" Text="Change View Mode..."/> |
| 158 | + </MenuFlyout> |
| 159 | + </Button.Flyout> |
| 160 | + </AppBarButton> |
| 161 | + <ScrollViewer HorizontalScrollMode="Auto" HorizontalScrollBarVisibility="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" > |
| 162 | + <TextBlock x:Name="VisiblePath" Text="{x:Bind local:GenericFileBrowser.P.path,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="0,0,0,0" FontFamily="Segoe UI Black" FontWeight="Bold" FontSize="32" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" VerticalAlignment="Top" HorizontalAlignment="Stretch"></TextBlock> |
| 163 | + </ScrollViewer> |
158 | 164 | </Grid>
|
159 | 165 |
|
160 |
| - <Grid Padding="50,200,50,0"> |
| 166 | + <Grid Padding="0,25,0,0" HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Grid.Row="1"> |
161 | 167 |
|
162 | 168 | <controls:DataGrid FocusVisualPrimaryThickness="0" SelectionMode="Extended" IsDoubleTapEnabled="True" x:FieldModifier="public" x:Name="AllView" Drop="AllView_DropAsync" AutoGenerateColumns="False" CanDrag="False" AllowDrop="True" DragOver="AllView_DragOver" IsRightTapEnabled="True" CanUserReorderColumns="False" IsReadOnly="True" ItemsSource="{x:Bind local2:ItemViewModel.FilesAndFolders}" Margin="0,0,0,0" Padding="0, 0, 0, 0" HorizontalAlignment="Left">
|
163 | 169 |
|
|
188 | 194 | <FontIcon Glyph=""/>
|
189 | 195 | </MenuFlyoutItem.Icon>
|
190 | 196 | </MenuFlyoutItem>
|
191 |
| - |
| 197 | + |
192 | 198 | <MenuFlyoutSeparator/>
|
193 | 199 | <MenuFlyoutItem Text="Delete" Name="DeleteItem" >
|
194 | 200 | <MenuFlyoutItem.Icon>
|
|
230 | 236 | </Setter>
|
231 | 237 | </Style>
|
232 | 238 | </controls:DataGrid.RowStyle>-->
|
233 |
| - |
234 |
| - <controls:DataGrid.Columns> |
| 239 | + |
| 240 | + <controls:DataGrid.Columns> |
235 | 241 | <controls:DataGridTemplateColumn>
|
236 | 242 | <controls:DataGridTemplateColumn.CellTemplate>
|
237 | 243 | <DataTemplate>
|
|
253 | 259 |
|
254 | 260 |
|
255 | 261 | </Grid>
|
256 |
| - <Grid Visibility="Collapsed" Background="{StaticResource Accent}" VerticalAlignment="Bottom" Height="30"> |
| 262 | + <Grid Visibility="Collapsed" Background="{StaticResource Accent}" VerticalAlignment="Top" Height="30" HorizontalAlignment="Stretch" Margin="0,872,0,0" Grid.Row="1"> |
257 | 263 |
|
258 | 264 | </Grid>
|
259 |
| - <controls:DropShadowPanel x:Name="ProgressBox" Visibility="{x:Bind local2:ItemViewModel.PVIS.isVisible, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="500" Height="225"> |
260 |
| - <Grid> |
261 |
| - <Rectangle Fill="White" Stroke="White" Width="500" Height="225" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
262 |
| - <TextBlock Text="{x:Bind local2:ItemViewModel.PUIH.Header, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="25,0,0,150" FontSize="22"/> |
263 |
| - <Button Content="Hide" HorizontalAlignment="Right" Margin="0,0,25,25" VerticalAlignment="Bottom" Width="175" Click="Button_Click"/> |
264 |
| - <TextBlock Text="{x:Bind local2:ItemViewModel.PUIP.Path, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="25,0,0,50" FontSize="14"/> |
265 |
| - <ProgressBar Name="pbar" Value="{x:Bind local2:ItemViewModel.PROGRESSPER.prog, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Height="8" HorizontalAlignment="Center" Width="450" Margin="0,50,0,0"/> |
266 |
| - </Grid> |
| 265 | + <controls:DropShadowPanel x:Name="ProgressBox" Visibility="{x:Bind local2:ItemViewModel.PVIS.isVisible, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" VerticalAlignment="Top" Width="500" Height="225" Margin="0,150,0,0" Grid.Row="1"> |
| 266 | + <Grid> |
| 267 | + <Rectangle Fill="{ThemeResource ApplicationPageBackgroundThemeBrush}" Stroke="White" Width="500" Height="225" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 268 | + <TextBlock Text="{x:Bind local2:ItemViewModel.PUIH.Header, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="25,0,0,150" FontSize="22"/> |
| 269 | + <Button Content="Hide" HorizontalAlignment="Right" Margin="0,0,25,25" VerticalAlignment="Bottom" Width="175" Click="Button_Click"/> |
| 270 | + <TextBlock Text="{x:Bind local2:ItemViewModel.PUIP.Path, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="25,0,0,50" FontSize="14"/> |
| 271 | + <ProgressBar Name="pbar" Value="{x:Bind local2:ItemViewModel.PROGRESSPER.prog, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Height="8" HorizontalAlignment="Center" Width="450" Margin="0,50,0,0"/> |
| 272 | + </Grid> |
267 | 273 | </controls:DropShadowPanel>
|
268 | 274 | </Grid>
|
269 | 275 |
|
|
0 commit comments