Class ManagedFileChooserViewModel
- Namespace
- Avalonia.Dialogs.Internal
- Assembly
- Avalonia.Dialogs.dll
public class ManagedFileChooserViewModel : AvaloniaDialogsInternalViewModelBase, INotifyPropertyChanged
- Inheritance
-
ManagedFileChooserViewModel
- Implements
-
- Inherited Members
-
Constructors
ManagedFileChooserViewModel(ManagedFileDialogOptions)
public ManagedFileChooserViewModel(ManagedFileDialogOptions options)
Parameters
options
ManagedFileDialogOptions
public ManagedFileChooserViewModel(FilePickerOpenOptions filePickerOpen, ManagedFileDialogOptions options)
Parameters
filePickerOpen
FilePickerOpenOptions
options
ManagedFileDialogOptions
public ManagedFileChooserViewModel(FilePickerSaveOptions filePickerSave, ManagedFileDialogOptions options)
Parameters
filePickerSave
FilePickerSaveOptions
options
ManagedFileDialogOptions
public ManagedFileChooserViewModel(FolderPickerOpenOptions folderPickerOpen, ManagedFileDialogOptions options)
Parameters
folderPickerOpen
FolderPickerOpenOptions
options
ManagedFileDialogOptions
Properties
FileName
public string? FileName { get; set; }
Property Value
- string
Filters
public AvaloniaList<ManagedFileChooserFilterViewModel> Filters { get; }
Property Value
- AvaloniaList<ManagedFileChooserFilterViewModel>
Items
public AvaloniaList<ManagedFileChooserItemViewModel> Items { get; }
Property Value
- AvaloniaList<ManagedFileChooserItemViewModel>
Location
public string? Location { get; set; }
Property Value
- string
QuickLinks
public AvaloniaList<ManagedFileChooserItemViewModel> QuickLinks { get; }
Property Value
- AvaloniaList<ManagedFileChooserItemViewModel>
QuickLinksSelectedIndex
public int QuickLinksSelectedIndex { get; set; }
Property Value
- int
SelectedFilter
public ManagedFileChooserFilterViewModel? SelectedFilter { get; set; }
Property Value
- ManagedFileChooserFilterViewModel
SelectedItems
public AvaloniaList<ManagedFileChooserItemViewModel> SelectedItems { get; }
Property Value
- AvaloniaList<ManagedFileChooserItemViewModel>
SelectingFolder
public bool SelectingFolder { get; }
Property Value
- bool
SelectionMode
public SelectionMode SelectionMode { get; }
Property Value
- SelectionMode
ShowFilters
public bool ShowFilters { get; }
Property Value
- bool
ShowHiddenFiles
public bool ShowHiddenFiles { get; set; }
Property Value
- bool
Title
public string? Title { get; }
Property Value
- string
Methods
CanOk(object)
[DependsOn("FileName")]
[DependsOn("Location")]
[DependsOn("SelectedItems")]
public bool CanOk(object _)
Parameters
_
object
Returns
- bool
Cancel()
EnterPressed()
public void EnterPressed()
GoUp()
public void Navigate(IStorageFolder? path, string? initialSelectionName = null)
Parameters
path
IStorageFolder
initialSelectionName
string
Navigate(string?, string?)
public void Navigate(string? path, string? initialSelectionName = null)
Parameters
path
string
initialSelectionName
string
Ok()
Refresh()
SelectSingleFile(ManagedFileChooserItemViewModel)
public void SelectSingleFile(ManagedFileChooserItemViewModel item)
Parameters
item
ManagedFileChooserItemViewModel
Events
CancelRequested
public event Action? CancelRequested
Event Type
- Action
CompleteRequested
public event Action<string[]>? CompleteRequested
Event Type
- Action<string[]>
OverwritePrompt
public event Action<string>? OverwritePrompt
Event Type
- Action<string>