|
2 | 2 | x:Class="Files.App.Views.LayoutModes.ColumnViewBase" |
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | | - xmlns:animations="using:CommunityToolkit.WinUI.UI.Animations" |
6 | | - xmlns:behaviors="using:CommunityToolkit.WinUI.UI.Behaviors" |
7 | | - xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls" |
8 | 5 | xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" |
9 | 6 | xmlns:converters1="using:Files.App.Converters" |
10 | 7 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
11 | 8 | xmlns:helpers="using:Files.App.Helpers" |
12 | | - xmlns:i="using:Microsoft.Xaml.Interactivity" |
13 | | - xmlns:icore="using:Microsoft.Xaml.Interactions.Core" |
14 | 9 | xmlns:local="using:Files.App" |
15 | 10 | xmlns:local2="using:Files.App.Filesystem" |
16 | 11 | xmlns:local3="using:Files.App.Filesystem.Cloud" |
|
37 | 32 | NotEmptyValue="Visible" /> |
38 | 33 |
|
39 | 34 | <converters1:BoolToSelectionMode x:Key="BoolToSelectionModeConverter" /> |
40 | | - <Style TargetType="controls:BladeItem"> |
41 | | - <Setter Property="Background" Value="Transparent" /> |
42 | | - <Setter Property="TitleBarVisibility" Value="Collapsed" /> |
43 | | - <Setter Property="BorderThickness" Value="0,0,1,0" /> |
44 | | - </Style> |
| 35 | + |
45 | 36 | <Style TargetType="ListViewHeaderItem"> |
46 | 37 | <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" /> |
47 | 38 | <Setter Property="FontSize" Value="{ThemeResource GridViewHeaderItemThemeFontSize}" /> |
|
190 | 181 | x:Name="FilesRootGrid" |
191 | 182 | Height="30" |
192 | 183 | Margin="0" |
193 | | - Padding="20,0,12,0" |
| 184 | + Padding="12,0,12,0" |
194 | 185 | HorizontalAlignment="Stretch" |
195 | 186 | VerticalAlignment="Stretch" |
196 | 187 | CornerRadius="{StaticResource ControlCornerRadius}" |
|
201 | 192 | <ColumnDefinition Width="24" /> |
202 | 193 | <ColumnDefinition Width="*" /> |
203 | 194 | <ColumnDefinition Width="Auto" /> |
204 | | - <ColumnDefinition Width="20" /> |
205 | 195 | </Grid.ColumnDefinitions> |
206 | | - <animations:Explicit.Animations> |
207 | | - <animations:AnimationSet x:Name="FadeAnimation"> |
208 | | - <animations:OpacityAnimation |
209 | | - Delay="0" |
210 | | - EasingMode="EaseIn" |
211 | | - EasingType="Linear" |
212 | | - From="0" |
213 | | - To="1" |
214 | | - Duration="0:0:.05" /> |
215 | | - <animations:TranslationAnimation |
216 | | - From="0, 5, 0" |
217 | | - To="0" |
218 | | - Duration="0:0:.1" /> |
219 | | - </animations:AnimationSet> |
220 | | - </animations:Explicit.Animations> |
221 | | - <i:Interaction.Behaviors> |
222 | | - <icore:EventTriggerBehavior EventName="Loaded"> |
223 | | - <behaviors:StartAnimationAction Animation="{Binding ElementName=FadeAnimation}" /> |
224 | | - </icore:EventTriggerBehavior> |
225 | | - </i:Interaction.Behaviors> |
| 196 | + |
| 197 | + <!-- Thumbnail --> |
226 | 198 | <Grid |
227 | 199 | Grid.Column="0" |
228 | 200 | Width="24" |
|
291 | 263 | Glyph="" /> |
292 | 264 | </Border> |
293 | 265 | </Grid> |
294 | | - <Grid |
| 266 | + |
| 267 | + <!-- Item Name --> |
| 268 | + <TextBlock |
| 269 | + x:Name="ItemName" |
295 | 270 | Grid.Column="1" |
296 | 271 | Margin="5,0,5,0" |
297 | | - HorizontalAlignment="Left"> |
298 | | - <TextBlock |
299 | | - x:Name="ItemName" |
300 | | - Grid.Column="1" |
301 | | - HorizontalAlignment="Stretch" |
302 | | - VerticalAlignment="Center" |
303 | | - Text="{x:Bind Name, Mode=OneWay}" |
304 | | - TextTrimming="CharacterEllipsis" |
305 | | - TextWrapping="NoWrap" /> |
306 | | - </Grid> |
| 272 | + HorizontalAlignment="Left" |
| 273 | + VerticalAlignment="Center" |
| 274 | + Text="{x:Bind Name, Mode=OneWay}" |
| 275 | + TextTrimming="CharacterEllipsis" |
| 276 | + TextWrapping="NoWrap" /> |
| 277 | + |
| 278 | + <!-- Rename Text Box --> |
307 | 279 | <TextBox |
308 | 280 | x:Name="ListViewTextBoxItemName" |
309 | 281 | Grid.Column="1" |
|
314 | 286 | TextAlignment="Left" |
315 | 287 | TextWrapping="Wrap" |
316 | 288 | Visibility="Collapsed" /> |
| 289 | + |
317 | 290 | <Grid Grid.Column="2"> |
318 | | - <StackPanel Orientation="Horizontal"> |
| 291 | + <StackPanel Orientation="Horizontal" Spacing="4"> |
| 292 | + <!-- Cloud Status --> |
319 | 293 | <FontIcon |
320 | 294 | x:Name="CloudDriveSyncStatusGlyph" |
321 | 295 | HorizontalAlignment="Center" |
|
324 | 298 | FontSize="12" |
325 | 299 | Glyph="{x:Bind ((local3:CloudDriveSyncStatusUI)SyncStatusUI).Glyph, Mode=OneWay}" |
326 | 300 | Visibility="{x:Bind ((local3:CloudDriveSyncStatusUI)SyncStatusUI).LoadSyncStatus, Mode=OneWay}" /> |
| 301 | + |
| 302 | + <!-- Tag Ellipse --> |
327 | 303 | <Ellipse |
328 | 304 | Width="12" |
329 | 305 | Height="12" |
|
332 | 308 | Fill="{x:Bind FileTagsUI[0].ColorModel, Mode=OneWay, Converter={StaticResource ColorModelToColorConverter}}" |
333 | 309 | ToolTipService.ToolTip="{x:Bind FileTagsUI[0].TagName, Mode=OneWay}" |
334 | 310 | Visibility="{x:Bind FileTagsUI, Converter={StaticResource EmptyObjectToObjectConverter}, Mode=OneWay}" /> |
| 311 | + |
| 312 | + <!-- Open Folder Icon --> |
| 313 | + <FontIcon |
| 314 | + x:Name="OpenFolderChevron" |
| 315 | + HorizontalAlignment="Right" |
| 316 | + VerticalAlignment="Center" |
| 317 | + x:Load="{x:Bind IsFolder}" |
| 318 | + FontSize="12" |
| 319 | + Foreground="{ThemeResource TextFillColorSecondary}" |
| 320 | + Glyph="" /> |
335 | 321 | </StackPanel> |
336 | 322 | </Grid> |
337 | | - <FontIcon |
338 | | - x:Name="OpenFolderChevron" |
339 | | - Grid.Column="3" |
340 | | - HorizontalAlignment="Right" |
341 | | - VerticalAlignment="Center" |
342 | | - x:Load="{x:Bind IsFolder}" |
343 | | - FontSize="12" |
344 | | - Foreground="{ThemeResource TextFillColorSecondary}" |
345 | | - Glyph="" /> |
346 | 323 | </Grid> |
347 | 324 | </DataTemplate> |
348 | 325 | </ListView.ItemTemplate> |
|
458 | 435 | </ListView> |
459 | 436 | </SemanticZoom.ZoomedOutView> |
460 | 437 | </SemanticZoom> |
| 438 | + |
461 | 439 | <Canvas> |
462 | 440 | <Rectangle |
463 | 441 | Name="SelectionRectangle" |
|
0 commit comments