From 21349276888bbfc16ae3c1caa31a2e9582385a03 Mon Sep 17 00:00:00 2001 From: Dong Bin <14807942+rabbitism@users.noreply.github.com> Date: Mon, 2 Oct 2023 07:34:26 +0800 Subject: [PATCH] fix: make ManagedFileChooserViewModel FileName and Location public so user can modify. (#13096) Co-authored-by: rabbitism Co-authored-by: Max Katz --- src/Avalonia.Dialogs/Internal/ManagedFileChooserViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Dialogs/Internal/ManagedFileChooserViewModel.cs b/src/Avalonia.Dialogs/Internal/ManagedFileChooserViewModel.cs index d7a2ef62c5..0cd86511ed 100644 --- a/src/Avalonia.Dialogs/Internal/ManagedFileChooserViewModel.cs +++ b/src/Avalonia.Dialogs/Internal/ManagedFileChooserViewModel.cs @@ -46,13 +46,13 @@ namespace Avalonia.Dialogs.Internal public string Location { get => _location; - private set => this.RaiseAndSetIfChanged(ref _location, value); + set => this.RaiseAndSetIfChanged(ref _location, value); } public string FileName { get => _fileName; - private set => this.RaiseAndSetIfChanged(ref _fileName, value); + set => this.RaiseAndSetIfChanged(ref _fileName, value); } public bool SelectingFolder => _selectingDirectory;