|
266 | 266 | <MenuFlyout helpers:MenuFlyoutHelper.IsVisible="{x:Bind ViewModel.CanExtract, Mode=OneWay}" Placement="Bottom">
|
267 | 267 | <MenuFlyoutItem
|
268 | 268 | x:Name="ExtractSingle"
|
269 |
| - x:Load="{x:Bind ViewModel.IsMultipleArchivesSelected, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}" |
270 | 269 | Command="{x:Bind Commands.DecompressArchive, Mode=OneWay}"
|
271 | 270 | IsEnabled="{x:Bind ViewModel.CanExtract, Mode=OneWay, FallbackValue=False}"
|
272 | 271 | KeyboardAcceleratorTextOverride="{x:Bind Commands.DecompressArchive.HotKeyText, Mode=OneWay}"
|
273 |
| - Text="{x:Bind Commands.DecompressArchive.Label}" /> |
| 272 | + Text="{x:Bind Commands.DecompressArchive.Label}" |
| 273 | + Visibility="{x:Bind ViewModel.IsMultipleArchivesSelected, Mode=OneWay, Converter={StaticResource NegatedBoolToVisibilityConverter}}" /> |
274 | 274 | <MenuFlyoutItem
|
275 | 275 | x:Name="ExtractHere"
|
276 |
| - x:Load="{x:Bind ViewModel.IsArchiveOpened, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}" |
277 | 276 | Command="{x:Bind Commands.DecompressArchiveHere, Mode=OneWay}"
|
278 | 277 | IsEnabled="{x:Bind ViewModel.IsSelectionArchivesOnly, Mode=OneWay, FallbackValue=False}"
|
279 |
| - Text="{x:Bind Commands.DecompressArchiveHere.Label}" /> |
| 278 | + Text="{x:Bind Commands.DecompressArchiveHere.Label}" |
| 279 | + Visibility="{x:Bind ViewModel.IsArchiveOpened, Mode=OneWay, Converter={StaticResource NegatedBoolToVisibilityConverter}}" /> |
280 | 280 | <MenuFlyoutItem
|
281 | 281 | x:Name="ExtractTo"
|
282 |
| - x:Load="{x:Bind ViewModel.IsArchiveOpened, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}" |
283 | 282 | Command="{x:Bind Commands.DecompressArchiveToChildFolder, Mode=OneWay}"
|
284 | 283 | IsEnabled="{x:Bind ViewModel.IsSelectionArchivesOnly, Mode=OneWay, FallbackValue=False}"
|
285 |
| - Text="{x:Bind Commands.DecompressArchiveToChildFolder.Label, Mode=OneWay}" /> |
| 284 | + Text="{x:Bind Commands.DecompressArchiveToChildFolder.Label, Mode=OneWay}" |
| 285 | + Visibility="{x:Bind ViewModel.IsArchiveOpened, Mode=OneWay, Converter={StaticResource NegatedBoolToVisibilityConverter}}" /> |
286 | 286 | </MenuFlyout>
|
287 | 287 | </AppBarButton.Flyout>
|
288 | 288 |
|
|
0 commit comments