/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Dialogs/CloneRepoDialog.xaml
30 строк
1 KB
Yair
Feature: Drag to clone (#16920)
17 мар 2025, 18:35
Не верифицирован
17 мар 2025, 18:35
1a1b651
Код
Авторство
О чём код?
<!-- Copyright (c) Files Community. Licensed under the MIT License. --> <ContentDialog x:Class="Files.App.Dialogs.CloneRepoDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:converters="using:CommunityToolkit.WinUI.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" Title="{helpers:ResourceString Name=CloneRepo}" HighContrastAdjustment="None" IsPrimaryButtonEnabled="{x:Bind ViewModel.CanCloneRepo, Mode=OneWay}" PrimaryButtonCommand="{x:Bind ViewModel.CloneRepoCommand, Mode=OneWay}" PrimaryButtonStyle="{ThemeResource AccentButtonStyle}" PrimaryButtonText="{helpers:ResourceString Name=Clone}" RequestedTheme="{x:Bind RootAppElement.RequestedTheme, Mode=OneWay}" SecondaryButtonText="{helpers:ResourceString Name=Cancel}" Style="{StaticResource DefaultContentDialogStyle}" mc:Ignorable="d"> <Grid Width="340"> <StackPanel Spacing="8"> <TextBox Header="{helpers:ResourceString Name=RepositoryURL}" PlaceholderText="https://github.com/files-community/Files" Text="{x:Bind ViewModel.RepoUrl, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> </StackPanel> </Grid> </ContentDialog>