|
124 | 124 | Orientation="Horizontal"> |
125 | 125 | <TextBlock FontSize="12" |
126 | 126 | FontWeight="Bold" |
127 | | - Text="{Binding Value, ElementName=progressPrePerFileBar}" /> |
| 127 | + Text="{x:Bind progressPrePerFileBar.Value, Mode=OneWay}" /> |
128 | 128 | <TextBlock FontSize="12" |
129 | 129 | FontWeight="Bold" |
130 | 130 | Text="%" /> |
|
171 | 171 | Orientation="Horizontal"> |
172 | 172 | <TextBlock FontSize="12" |
173 | 173 | FontWeight="Bold" |
174 | | - Text="{Binding Value, ElementName=progressPreBar}" /> |
| 174 | + Text="{x:Bind progressPreBar.Value, Mode=OneWay}" /> |
175 | 175 | <TextBlock FontSize="12" |
176 | 176 | FontWeight="Bold" |
177 | 177 | Text="%" /> |
|
229 | 229 | Orientation="Horizontal"> |
230 | 230 | <TextBlock FontSize="12" |
231 | 231 | FontWeight="Bold" |
232 | | - Text="{Binding Text, ElementName=ProgressPrePerFileStatusFooter}" /> |
| 232 | + Text="{x:Bind ProgressPrePerFileStatusFooter.Text, Mode=OneWay}" /> |
233 | 233 | </StackPanel> |
234 | 234 | <TextBlock Margin="0,4,0,0" |
235 | 235 | FontSize="12" |
236 | 236 | FontWeight="Bold" |
237 | | - Text="{Binding Text, ElementName=ProgressPreStatusFooter}" /> |
| 237 | + Text="{x:Bind ProgressPreStatusFooter.Text, Mode=OneWay}" /> |
238 | 238 | </StackPanel> |
239 | 239 | </Grid> |
240 | 240 | </StackPanel> |
|
254 | 254 | VerticalAlignment="Bottom"> |
255 | 255 | <TextBlock HorizontalAlignment="Right" |
256 | 256 | FontSize="12" |
257 | | - Text="{Binding Text, ElementName=ProgressPreStatusSubtitle}" /> |
| 257 | + Text="{x:Bind ProgressPreStatusSubtitle.Text, Mode=OneWay}" /> |
258 | 258 | </StackPanel> |
259 | 259 | <StackPanel Grid.Column="1" |
260 | 260 | HorizontalAlignment="Left" |
261 | 261 | VerticalAlignment="Bottom" |
262 | 262 | Orientation="Horizontal"> |
263 | 263 | <TextBlock FontSize="12" |
264 | 264 | FontWeight="Bold" |
265 | | - Text="{Binding Value, ElementName=progressPreBar}" /> |
| 265 | + Text="{x:Bind progressPreBar.Value, Mode=OneWay}" /> |
266 | 266 | <TextBlock FontSize="12" |
267 | 267 | FontWeight="Bold" |
268 | 268 | Text="%" /> |
|
285 | 285 | HorizontalAlignment="Right" |
286 | 286 | FontSize="12" |
287 | 287 | FontWeight="Bold" |
288 | | - Text="{Binding Text, ElementName=ProgressPreTimeLeft}" /> |
| 288 | + Text="{x:Bind ProgressPreTimeLeft.Text, Mode=OneWay}" /> |
289 | 289 | </StackPanel> |
290 | 290 | </Grid> |
291 | 291 | </StackPanel> |
|
296 | 296 | Margin="0,8,0,24" |
297 | 297 | HorizontalAlignment="Stretch" |
298 | 298 | VerticalAlignment="Bottom" |
299 | | - IsIndeterminate="{Binding IsIndeterminate, ElementName=progressPreBar}" |
300 | | - Maximum="{Binding Maximum, ElementName=progressPreBar}" |
301 | | - Value="{Binding Value, ElementName=progressPreBar}" /> |
| 299 | + IsIndeterminate="{x:Bind progressPreBar.IsIndeterminate, Mode=OneWay}" |
| 300 | + Maximum="{x:Bind progressPreBar.Maximum, Mode=OneWay}" |
| 301 | + Value="{x:Bind progressPreBar.Value, Mode=OneWay}" /> |
302 | 302 | </Grid> |
303 | 303 | <Grid x:Name="ProgressPreButtonGrid" |
304 | 304 | Margin="0,-8,0,16" |
|
930 | 930 | <ProgressRing Width="Auto" |
931 | 931 | Height="Auto" |
932 | 932 | HorizontalAlignment="Stretch" |
933 | | - IsIndeterminate="{Binding IsIndeterminate, ElementName=SophonProgressRing}" |
934 | | - Maximum="{Binding Maximum, ElementName=SophonProgressRing}" |
935 | | - Value="{Binding Value, ElementName=SophonProgressRing}" /> |
| 933 | + IsIndeterminate="{x:Bind SophonProgressRing.IsIndeterminate, Mode=OneWay}" |
| 934 | + Maximum="{x:Bind SophonProgressRing.Maximum, Mode=OneWay}" |
| 935 | + Value="{x:Bind SophonProgressRing.Value, Mode=OneWay}" /> |
936 | 936 | <Ellipse x:Name="SophonProgressRingBG" |
937 | 937 | HorizontalAlignment="Stretch" |
938 | 938 | Fill="{ThemeResource ProgressBackgroundAcrylicBrush}" /> |
|
950 | 950 | <ProgressRing Width="Auto" |
951 | 951 | Height="Auto" |
952 | 952 | HorizontalAlignment="Stretch" |
953 | | - IsIndeterminate="{Binding IsIndeterminate, ElementName=SophonProgressRingPerFile}" |
954 | | - Maximum="{Binding Maximum, ElementName=SophonProgressRingPerFile}" |
955 | | - Value="{Binding Value, ElementName=SophonProgressRingPerFile}" /> |
| 953 | + IsIndeterminate="{x:Bind SophonProgressRingPerFile.IsIndeterminate, Mode=OneWay}" |
| 954 | + Maximum="{x:Bind SophonProgressRingPerFile.Maximum, Mode=OneWay}" |
| 955 | + Value="{x:Bind SophonProgressRingPerFile.Value, Mode=OneWay}" /> |
956 | 956 | <Ellipse x:Name="SophonProgressRingBG2" |
957 | 957 | Margin="4" |
958 | 958 | HorizontalAlignment="Stretch" |
|
1036 | 1036 | <StackPanel HorizontalAlignment="Center" |
1037 | 1037 | Orientation="Horizontal"> |
1038 | 1038 | <TextBlock FontWeight="Bold" |
1039 | | - Text="{Binding Value, ElementName=SophonProgressRing}" /> |
| 1039 | + Text="{x:Bind SophonProgressRing.Value, Mode=OneWay}" /> |
1040 | 1040 | <TextBlock Margin="-1,0,0,0" |
1041 | 1041 | FontWeight="Bold" |
1042 | 1042 | Text="%" /> |
|
1245 | 1245 | <ProgressRing Width="Auto" |
1246 | 1246 | Height="Auto" |
1247 | 1247 | HorizontalAlignment="Stretch" |
1248 | | - IsIndeterminate="{Binding IsIndeterminate, ElementName=progressRing}" |
1249 | | - Maximum="{Binding Maximum, ElementName=progressRing}" |
1250 | | - Value="{Binding Value, ElementName=progressRing}" /> |
| 1248 | + IsIndeterminate="{x:Bind progressRing.IsIndeterminate, Mode=OneWay}" |
| 1249 | + Maximum="{x:Bind progressRing.Maximum, Mode=OneWay}" |
| 1250 | + Value="{x:Bind progressRing.Value, Mode=OneWay}" /> |
1251 | 1251 | <Ellipse x:Name="progressRingBG" |
1252 | 1252 | HorizontalAlignment="Stretch" |
1253 | 1253 | Fill="{ThemeResource ProgressBackgroundAcrylicBrush}" /> |
|
1265 | 1265 | <ProgressRing Width="Auto" |
1266 | 1266 | Height="Auto" |
1267 | 1267 | HorizontalAlignment="Stretch" |
1268 | | - IsIndeterminate="{Binding IsIndeterminate, ElementName=progressRingPerFile}" |
1269 | | - Maximum="{Binding Maximum, ElementName=progressRingPerFile}" |
1270 | | - Value="{Binding Value, ElementName=progressRingPerFile}" /> |
| 1268 | + IsIndeterminate="{x:Bind progressRingPerFile.IsIndeterminate, Mode=OneWay}" |
| 1269 | + Maximum="{x:Bind progressRingPerFile.Maximum, Mode=OneWay}" |
| 1270 | + Value="{x:Bind progressRingPerFile.Value, Mode=OneWay}" /> |
1271 | 1271 | <Grid x:Name="ProgressPerFileCircleShadowCaster" |
1272 | 1272 | Margin="4" |
1273 | 1273 | CornerRadius="{x:Bind extension:UIElementExtensions.AttachRoundedKindCornerRadius(ProgressPerFileCircleShadowCaster)}" |
|
1323 | 1323 | <StackPanel HorizontalAlignment="Center" |
1324 | 1324 | Orientation="Horizontal"> |
1325 | 1325 | <TextBlock FontWeight="Bold" |
1326 | | - Text="{Binding Value, ElementName=progressRing}" /> |
| 1326 | + Text="{x:Bind progressRing.Value, Mode=OneWay}" /> |
1327 | 1327 | <TextBlock Margin="-1,0,0,0" |
1328 | 1328 | FontWeight="Bold" |
1329 | 1329 | Text="%" /> |
|
0 commit comments