FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Core.ViewModels.SideBarEntryViewModel Class Reference

Represents a local, displayable sidebar entry (file, directory, or drive) in the FileSurfer application. More...

Inheritance diagram for FileSurfer.Core.ViewModels.SideBarEntryViewModel:
Collaboration diagram for FileSurfer.Core.ViewModels.SideBarEntryViewModel:

Public Member Functions

 SideBarEntryViewModel (IFileSystem fileSystem, IFileSystemEntry fileSystemEntry)
 Creates a sidebar entry from a file system entry and resolves its icon asynchronously.
 SideBarEntryViewModel (IFileSystem fileSystem, DriveEntryInfo driveEntryInfo)
 Creates a sidebar entry from drive metadata and resolves its icon asynchronously.

Properties

string PathToEntry [get]
 Path to the file, directory, or drive represented by this SideBarEntryViewModel.
Bitmap? Icon [get]
 Holds a Bitmap representing the file.
string Name [get]
 = Holds the name of file, directory, or drive represented by this SideBarEntryViewModel.
double Opacity = 1 [get]
 Holds this SideBarEntryViewModel's displayed opacity.
bool IsDirectory [get]
 Specifies if this SideBarEntryViewModel should be treated as a directory.

Detailed Description

Represents a local, displayable sidebar entry (file, directory, or drive) in the FileSurfer application.

Constructor & Destructor Documentation

◆ SideBarEntryViewModel() [1/2]

FileSurfer.Core.ViewModels.SideBarEntryViewModel.SideBarEntryViewModel ( IFileSystem fileSystem,
IFileSystemEntry fileSystemEntry )
inline

Creates a sidebar entry from a file system entry and resolves its icon asynchronously.

Here is the call graph for this function:

◆ SideBarEntryViewModel() [2/2]

FileSurfer.Core.ViewModels.SideBarEntryViewModel.SideBarEntryViewModel ( IFileSystem fileSystem,
DriveEntryInfo driveEntryInfo )
inline

Creates a sidebar entry from drive metadata and resolves its icon asynchronously.

Here is the call graph for this function:

Property Documentation

◆ Icon

Bitmap? FileSurfer.Core.ViewModels.SideBarEntryViewModel.Icon
get

Holds a Bitmap representing the file.

◆ IsDirectory

bool FileSurfer.Core.ViewModels.SideBarEntryViewModel.IsDirectory
get

Specifies if this SideBarEntryViewModel should be treated as a directory.

◆ Name

string FileSurfer.Core.ViewModels.SideBarEntryViewModel.Name
get

= Holds the name of file, directory, or drive represented by this SideBarEntryViewModel.

◆ Opacity

double FileSurfer.Core.ViewModels.SideBarEntryViewModel.Opacity = 1
get

Holds this SideBarEntryViewModel's displayed opacity.

◆ PathToEntry

string FileSurfer.Core.ViewModels.SideBarEntryViewModel.PathToEntry
get

Path to the file, directory, or drive represented by this SideBarEntryViewModel.


The documentation for this class was generated from the following file: