Add accessibility modifiers
MODIFY
WalletWasabi.Gui/ManagedDialogs/ChildFitter.cs
WalletWasabi.Gui/ManagedDialogs/ChildFitter.cs
@@ -4,7 +4,7 @@ using Avalonia.Layout;
namespace WalletWasabi.Gui.ManagedDialogs
{
- class ChildFitter : Decorator
+ internal class ChildFitter : Decorator
{
protected override Size MeasureOverride(Size availableSize)
{

MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooser.xaml.cs
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooser.xaml.cs
@@ -10,7 +10,7 @@ using Avalonia.Markup.Xaml;
namespace WalletWasabi.Gui.ManagedDialogs
{
- class ManagedFileChooser : UserControl
+ internal class ManagedFileChooser : UserControl
{
private Control _quickLinksRoot;
private ListBox _filesView;
@@ -23,7 +23,7 @@ namespace WalletWasabi.Gui.ManagedDialogs
_filesView = this.FindControl<ListBox>("Files");
}
- ManagedFileChooserViewModel Model => DataContext as ManagedFileChooserViewModel;
+ private ManagedFileChooserViewModel Model => DataContext as ManagedFileChooserViewModel;
private void OnPointerPressed(object sender, PointerPressedEventArgs e)
{

MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserFilterViewModel.cs
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserFilterViewModel.cs
@@ -6,7 +6,7 @@ using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Gui.ManagedDialogs
{
- class ManagedFileChooserFilterViewModel : ViewModelBase
+ internal class ManagedFileChooserFilterViewModel : ViewModelBase
{
private readonly string[] _extensions;
public string Name { get; }

MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserItemViewModel.cs
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserItemViewModel.cs
@@ -4,7 +4,7 @@ using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Gui.ManagedDialogs
{
- class ManagedFileChooserItemViewModel : ViewModelBase
+ internal class ManagedFileChooserItemViewModel : ViewModelBase
{
private string _displayName;
private string _path;

MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserViewModel.cs
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserViewModel.cs
@@ -13,9 +13,10 @@ using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Gui.ManagedDialogs
{
- class ManagedFileChooserViewModel : ViewModelBase
+ internal class ManagedFileChooserViewModel : ViewModelBase
{
public event Action CancelRequested;
+
public event Action<string[]> CompleteRequested;
public AvaloniaList<ManagedFileChooserItemViewModel> QuickLinks { get; } =
@@ -30,8 +31,8 @@ namespace WalletWasabi.Gui.ManagedDialogs
public AvaloniaList<ManagedFileChooserItemViewModel> SelectedItems { get; } =
new AvaloniaList<ManagedFileChooserItemViewModel>();
- string _location;
- string _fileName;
+ private string _location;
+ private string _fileName;
private bool _showHiddenFiles;
private ManagedFileChooserFilterViewModel _selectedFilter;
private bool _selectingDirectory;
@@ -198,7 +199,7 @@ namespace WalletWasabi.Gui.ManagedDialogs
});
}
- void NavigateRoot(string initialSelectionName)
+ private void NavigateRoot(string initialSelectionName)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{

MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileDialog.xaml.cs
WalletWasabi.Gui/ManagedDialogs/ManagedFileDialog.xaml.cs
@@ -10,7 +10,7 @@ using AvalonStudio.Shell.Controls;
namespace WalletWasabi.Gui.ManagedDialogs
{
- class ManagedFileDialog : MetroWindow
+ internal class ManagedFileDialog : MetroWindow
{
public ManagedFileDialog()
{

MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileDialogExtensions.cs
WalletWasabi.Gui/ManagedDialogs/ManagedFileDialogExtensions.cs
@@ -9,9 +9,9 @@ namespace WalletWasabi.Gui.ManagedDialogs
{
public static class ManagedFileDialogExtensions
{
- class ManagedSystemDialogImpl : ISystemDialogImpl
+ private class ManagedSystemDialogImpl : ISystemDialogImpl
{
- async Task<string[]> Show(SystemDialog d, IWindowImpl parent)
+ private async Task<string[]> Show(SystemDialog d, IWindowImpl parent)
{
var model = new ManagedFileChooserViewModel((FileSystemDialog)d);

Add accessibility modifiers