|
42 | 42 |
|
43 | 43 | <local:DoubleToStringConverter x:Key="NumberToStringConverter"/> |
44 | 44 | <local:DateTimeToStringConverter x:Key="DateTimeToStringConverter"/> |
| 45 | + <local:ReadableSizeConverter x:Key="ReadableSizeConverter"/> |
45 | 46 |
|
46 | 47 | <Style x:Key="DuplicateFilenameTextStyle" TargetType="TextBlock"> |
47 | 48 | <Setter Property="FontSize" Value="14"/> |
|
112 | 113 | <RowDefinition Height="Auto"/> |
113 | 114 | </Grid.RowDefinitions> |
114 | 115 |
|
115 | | - <TextBlock Grid.Row="0" Grid.ColumnSpan="2" Height="55" Padding="0,25,0,20" LineHeight="42" VerticalAlignment="Center"> |
| 116 | + <TextBlock Grid.Row="0" Grid.ColumnSpan="2" Height="55" Padding="0,25,0,20" LineHeight="42" VerticalAlignment="Center" FontSize="12"> |
116 | 117 | <Run Text="Destination folder contains 3 duplicates"/> |
117 | 118 | </TextBlock> |
118 | 119 |
|
119 | | - <CheckBox Grid.Row="1" Content="Use source" Checked="CheckBox_Checked"/> |
120 | | - <CheckBox Grid.Row="1" Grid.Column="1" Content="Use destination"/> |
| 120 | + <Line Margin="0,0,0,0" Grid.Row="1" Grid.ColumnSpan="2" X1="0" X2="500" Y1="0" Y2="0" Stroke="{StaticResource SeperatorLineColor}" Opacity="{StaticResource SeperatorLineOpacity}"/> |
| 121 | + <CheckBox Grid.Row="1" Content="Use source" Checked="CheckBox_Checked" IsThreeState="True" IsChecked="{x:Bind ViewModel.UseSource, Mode=TwoWay}"/> |
| 122 | + <CheckBox Grid.Row="1" Grid.Column="1" Content="Use destination" IsThreeState="True" IsChecked="{x:Bind ViewModel.UseDestination, Mode=TwoWay}"/> |
| 123 | + <Line Margin="0,0,0,0" Grid.Row="1" Grid.ColumnSpan="2" X1="0" X2="500" Y1="45" Y2="45" Stroke="{StaticResource SeperatorLineColor}" Opacity="{StaticResource SeperatorLineOpacity}"/> |
121 | 124 | </Grid> |
122 | 125 |
|
123 | 126 | <ItemsRepeater Grid.Row="4" Margin="0,24,0,0" ItemsSource="{x:Bind ViewModel.DuplicateFiles}"> |
|
148 | 151 | <Image Source="{x:Bind File1.Bitmap}" Width="48" Height="48" Stretch="Uniform"/> |
149 | 152 | <StackPanel Margin="10,0,0,0" Orientation="Vertical"> |
150 | 153 | <TextBlock Text="{x:Bind File1.CreationDate,Converter={StaticResource DateTimeToStringConverter}}"/> |
151 | | - <TextBlock Text="{x:Bind File1.Bytes}"/> |
| 154 | + <TextBlock Text="{x:Bind File1.Bytes, Converter={StaticResource ReadableSizeConverter}}"/> |
152 | 155 | </StackPanel> |
153 | 156 | </StackPanel> |
154 | 157 | </CheckBox> |
|
158 | 161 | <Image Source="{x:Bind File2.Bitmap}" Width="48" Height="48" Stretch="Uniform"/> |
159 | 162 | <StackPanel Margin="10,0,0,0" Orientation="Vertical"> |
160 | 163 | <TextBlock Text="{x:Bind File2.CreationDate, Converter={StaticResource DateTimeToStringConverter}}"/> |
161 | | - <TextBlock Text="{x:Bind File2.Bytes}"/> |
| 164 | + <TextBlock Text="{x:Bind File2.Bytes,Converter={StaticResource ReadableSizeConverter}}"/> |
162 | 165 | </StackPanel> |
163 | 166 | </StackPanel> |
164 | 167 | </CheckBox> |
|
0 commit comments