/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Dialogs/CompressSkippedItemsDialog.xaml
87 строк
3 KB
yair100
Feature: Added prompt when there is issue compressing file (#18723)
16 июл 2026, 21:59
Не верифицирован
16 июл 2026, 21:59
b30f334
Код
Авторство
О чём код?
<!-- Copyright (c) Files Community. SPDX-License-Identifier: MPL-2.0 --> <ContentDialog x:Class="Files.App.Dialogs.CompressSkippedItemsDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:converters="using:Files.App.Converters" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:helpers="using:Files.App.Helpers" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="using:Files.App.ViewModels.Dialogs" Title="{helpers:ResourceString Name=CompressSkippedItemsDialogTitle}" CloseButtonText="{helpers:ResourceString Name=Cancel}" CornerRadius="{StaticResource OverlayCornerRadius}" DefaultButton="Primary" HighContrastAdjustment="None" PrimaryButtonText="{helpers:ResourceString Name=Skip}" RequestedTheme="{x:Bind RootAppElement.RequestedTheme, Mode=OneWay}" Style="{StaticResource DefaultContentDialogStyle}" mc:Ignorable="d"> <ContentDialog.Resources> <converters:ImageModelToImageConverter x:Key="ImageModelToImageConverter" /> </ContentDialog.Resources> <StackPanel Spacing="16"> <TextBlock Text="{x:Bind ViewModel.Description, Mode=OneWay}" TextWrapping="WrapWholeWords" /> <ListView MaxHeight="200" IsItemClickEnabled="False" ItemsSource="{x:Bind ViewModel.Items, Mode=OneWay}" SelectionMode="None"> <ListView.ItemTemplate> <DataTemplate x:DataType="vm:CompressSkippedItemViewModel"> <Grid ColumnSpacing="12"> <Grid.ColumnDefinitions> <!-- Icon --> <ColumnDefinition Width="Auto" /> <!-- Content --> <ColumnDefinition /> </Grid.ColumnDefinitions> <!-- Icon --> <Image Grid.Column="0" Width="48" Height="48" HorizontalAlignment="Left" VerticalAlignment="Center" Source="{x:Bind ItemIcon, Mode=OneWay, Converter={StaticResource ImageModelToImageConverter}}" /> <!-- Content --> <StackPanel Grid.Column="1" VerticalAlignment="Center" Spacing="4"> <TextBlock Text="{x:Bind DisplayName, Mode=OneTime}" /> <TextBlock Opacity="0.8" Text="{x:Bind SourcePath, Mode=OneTime}" TextTrimming="CharacterEllipsis" ToolTipService.ToolTip="{x:Bind SourcePath, Mode=OneTime}" /> </StackPanel> </Grid> </DataTemplate> </ListView.ItemTemplate> <ListView.ItemsPanel> <ItemsPanelTemplate> <ItemsStackPanel HorizontalAlignment="Stretch" Orientation="Vertical" /> </ItemsPanelTemplate> </ListView.ItemsPanel> <ListView.ItemContainerStyle> <Style BasedOn="{StaticResource DefaultListViewItemStyle}" TargetType="ListViewItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch" /> <Setter Property="Padding" Value="0,12" /> <Setter Property="IsTabStop" Value="False" /> </Style> </ListView.ItemContainerStyle> </ListView> </StackPanel> </ContentDialog>