ServerFolderWindow
Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll
The dialog of ServerFolderPicker: a folder on the server’s computer, never the local folder dialog (the client may run on another computer). Title bar, one card with Up, Drives and New folder, the path bar (Enter opens a typed path; the open folder’s check or a refusal below it), the inline New folder name with Create and Cancel, the virtualized list of subfolders (double click or Enter opens) with the loading overlay while it reads, then Cancel and the primary Choose for the open folder. Open it with ServerFolderWindow.ShowAsync; the view model is ServerFolderPickerViewModel.
public sealed class ServerFolderWindow : WindowInherits Window
Constructors
Section titled “Constructors”ServerFolderWindow
Section titled “ServerFolderWindow”ServerFolderWindow(ServerFolderPickerViewModel viewModel)The window for viewModel; usually opened through ServerFolderWindow.ShowAsync.
Properties
Section titled “Properties”ChooseButton
Section titled “ChooseButton”Button ChooseButton { get; }The main button of the footer.
CreateButton
Section titled “CreateButton”Button CreateButton { get; }Create of the New folder editor (tests).
Heading
Section titled “Heading”string? Heading { get; set; }The window title (title bar and task switcher).
ListBox List { get; }The folder list (tests).
Loading
Section titled “Loading”LoadingOverlay Loading { get; }The loading overlay of the list (tests).
NameBox
Section titled “NameBox”TextBox NameBox { get; }The name of a new folder (tests).
NewFolderButton
Section titled “NewFolderButton”Button NewFolderButton { get; }New folder (tests).
PathBox
Section titled “PathBox”TextBox PathBox { get; }The path bar (tests).
ViewModel
Section titled “ViewModel”ServerFolderPickerViewModel ViewModel { get; }Its view model.
Methods
Section titled “Methods”ShowAsync
Section titled “ShowAsync”static Task<string?> ShowAsync(Window owner, IServerFolders folders, string? startPath = null, string? heading = null)Shows the dialog over owner, opened on startPath (else the drives); returns the chosen folder’s full path on the server, or null when cancelled.
Fields
Section titled “Fields”DefaultHeading
Section titled “DefaultHeading”const string DefaultHeading = "Choose a folder on the server"The title when the caller gives none.