/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Dialogs/BulkRenameDialog.xaml
59 строк
2 KB
Yair
Code Quality: Updated license header
31 дек 2024, 05:03
31 дек 2024, 05:03
8436c6d
Код
Авторство
О чём код?
<!-- Copyright (c) Files Community. Licensed under the MIT License. --> <ContentDialog x:Class="Files.App.Dialogs.BulkRenameDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:helpers="using:Files.App.Helpers" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Title="{helpers:ResourceString Name=BulkRename}" DefaultButton="Primary" HighContrastAdjustment="None" IsPrimaryButtonEnabled="{x:Bind ViewModel.IsNameValid, Mode=OneWay}" PrimaryButtonCommand="{x:Bind ViewModel.CommitRenameCommand, Mode=OneWay}" PrimaryButtonText="{helpers:ResourceString Name=Rename}" RequestedTheme="{x:Bind RootAppElement.RequestedTheme, Mode=OneWay}" SecondaryButtonText="{helpers:ResourceString Name=Cancel}" Style="{StaticResource DefaultContentDialogStyle}" mc:Ignorable="d"> <StackPanel Width="440" Spacing="4"> <!-- Name --> <Grid Padding="12" Background="{ThemeResource CardBackgroundFillColorDefaultBrush}" BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" BorderThickness="1" ColumnSpacing="8" CornerRadius="4"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" VerticalAlignment="Center" Text="{helpers:ResourceString Name=Name}" /> <TextBox x:Name="FileNameBox" Grid.Column="1" Width="260" PlaceholderText="{helpers:ResourceString Name=EnterName}" Text="{x:Bind ViewModel.FileName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> <TextBox.Resources> <TeachingTip x:Name="InvalidNameWarning" Title="{helpers:ResourceString Name=InvalidFilename/Text}" IsOpen="{x:Bind ViewModel.ShowNameWarning, Mode=OneWay}" PreferredPlacement="Bottom" Target="{x:Bind FileNameBox}" /> </TextBox.Resources> </TextBox> </Grid> </StackPanel> </ContentDialog>