Skip to content

Commit

Permalink
Fix FileCleanupPage binding
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-nyan committed Oct 2, 2024
1 parent c53aea9 commit 71d414c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CollapseLauncher/XAMLs/MainApp/Pages/FileCleanupPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
xmlns:page="using:CollapseLauncher.Pages"
xmlns:type="using:CollapseLauncher.InstallManager.Base"
mc:Ignorable="d">
<Page.Resources>
<page:FileSizeToStringLiteralConverter x:Key="FileSizeToStringConverter" />
</Page.Resources>
<Grid Padding="32,32,32,32"
Background="{ThemeResource WebView2GridBackground}">
<Grid.RowDefinitions>
Expand Down Expand Up @@ -68,9 +71,6 @@
Padding="16"
Background="{ThemeResource AcrylicBackgroundFillColorDefaultBrush}"
CornerRadius="8">
<Grid.Resources>
<page:FileSizeToStringLiteralConverter x:Key="FileSizeToStringLiteralConverter" />
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
Expand Down Expand Up @@ -129,11 +129,11 @@
<datatable:DataRow>
<TextBlock Margin="0,0,16,0"
VerticalAlignment="Center"
Text="{Binding RelativePath}"
Text="{x:Bind RelativePath}"
TextTrimming="CharacterEllipsis" />
<TextBlock Margin="-30,0,56,0"
VerticalAlignment="Center"
Text="{Binding FileSize, Converter={StaticResource FileSizeToStringLiteralConverter}}"
Text="{x:Bind FileSize, Converter={StaticResource FileSizeToStringConverter}}"
TextAlignment="Right"
TextTrimming="CharacterEllipsis" />
</datatable:DataRow>
Expand Down

0 comments on commit 71d414c

Please sign in to comment.