/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Dialogs/DecompressArchiveDialog.xaml.cs
40 строк
1 KB
Yair
Feature: Added previous locations dropdown to the extract archive dialog (#17783)
27 окт 2025, 18:21
Не верифицирован
27 окт 2025, 18:21
5ddc007
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using System.Text; namespace Files.App.Dialogs { public sealed partial class DecompressArchiveDialog : ContentDialog { private FrameworkElement RootAppElement => (FrameworkElement)MainWindow.Instance.Content; public DecompressArchiveDialogViewModel ViewModel { get => (DecompressArchiveDialogViewModel)DataContext; set => DataContext = value; } public DecompressArchiveDialog() { InitializeComponent(); } private void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { if (ViewModel.IsArchiveEncrypted) ViewModel.PrimaryButtonClickCommand.Execute(new DisposableArray(Encoding.UTF8.GetBytes(Password.Password))); } private void DestinationFolderPath_TextChanged(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args) { if (args.Reason == AutoSuggestionBoxTextChangeReason.UserInput) { ViewModel.UpdateSuggestions(sender.Text); } } } }