FileEventViewModel Class |
Namespace: ITHit.FileSystem.Windows.WinUI.ViewModels
The FileEventViewModel type exposes the following members.
Name | Description | |
---|---|---|
![]() | FileEventViewModel | Initializes a new instance of the FileEventViewModel class |
Name | Description | |
---|---|---|
![]() | ComponentName |
Component name which fired the event.
|
![]() | Direction |
File or folder path related with the event.
|
![]() | ErrorMenuVisibility |
Indicates whether error details menu point is visible.
|
![]() | ErrorMessage |
Is filled for operations with error. Contains error message.
For successed events it is null.
|
![]() | EventNameText |
User-friendly event name text (with preposition if needed), e.g. "Downloading", "Downloaded to", "Created in", etc.
|
![]() | EventNameVisibility |
Event name visibility
|
![]() | ExceptionStackTrace |
Is filled for operations with exception. Contains exception stack trace.
|
![]() | FileName |
File name related with the event.
|
![]() | FolderDeletedVisible |
Indicates whether non-clickable folder name should be shown.
|
![]() | FolderLinkVisible |
Indicates whether clickable folder name should be shown.
|
![]() | FolderName |
Folder name in which file is located.
|
![]() | History |
Array of history items of the event
|
![]() | InitialPath |
Use for MoveCompleted event - contains path before moving.
|
![]() | IsCompleted |
Is used for Incoming UpdateContent and Populate events. Shows if operation is completed.
For other types of events it is always true.
|
![]() | MainOverlayIcon |
Holds the main overlay icon showing kind of event ("up" for upload, "down" for download, lock/unlock, "plus" for created item).
|
![]() | MainOverlayIconVisibility |
Indicates whether we should show main overlay icon (it is true if icon is defined).
|
![]() | NotificationTime |
Notification time of the event, e.g. Before, After
|
![]() | OperationStatus |
Operation status (e.g. Failed or Conflict)
|
![]() | OperationType |
Operation type(e.g. OperationType.Delete or OperationType.Create)
|
![]() | ParentModel | |
![]() | Path |
File or folder path related with the event.
|
![]() | ProgressPercent |
Progress percent
|
![]() | ProgressText |
Progress text, e.g. 12.5 MB of 25.7 MB.
|
![]() | ProgressVisibility |
Progress visibility
|
![]() | ResolveConflictMenuVisibility |
Indicates whether resolve conflict menu point is visible.
|
![]() | SyncTypeOverlayIcon |
Holds the additional overlay icon showing whether operation is incoming or outgoing.
|
![]() | Thumbnail |
Holds the file thumbnail.
|
![]() | ThumbnailOpacity | |
![]() | Time |
Time of the event.
|
![]() | TimeText |
User-friendly string representing event's time.
|
![]() | TimeVisibility | |
![]() | ViewItemOnlineVisibility |
Indicates whether View Item Online context menu (in history items) is visible
|
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnPropertyChanged(PropertyChangedEventArgs) |
Raises the PropertyChanged event.
(Inherited from ObservableObject.) |
![]() | OnPropertyChanged(String) |
Raises the PropertyChanged event.
(Inherited from ObservableObject.) |
![]() | OnPropertyChanging(PropertyChangingEventArgs) |
Raises the PropertyChanging event.
(Inherited from ObservableObject.) |
![]() | OnPropertyChanging(String) |
Raises the PropertyChanging event.
(Inherited from ObservableObject.) |
![]() | SetProperty``1(UMP, UMP, String) |
Compares the current and new values for a given property. If the value has changed,
raises the PropertyChanging event, updates the property with the new
value, then raises the PropertyChanged event.
(Inherited from ObservableObject.) |
![]() | SetProperty``1(UMP, UMP, IEqualityComparerUMP, String) |
Compares the current and new values for a given property. If the value has changed,
raises the PropertyChanging event, updates the property with the new
value, then raises the PropertyChanged event.
See additional notes about this overload in SetProperty``1(UMP, UMP, String).
(Inherited from ObservableObject.) |
![]() | SetProperty``1(UMP, UMP, ActionUMP, String) |
Compares the current and new values for a given property. If the value has changed,
raises the PropertyChanging event, updates the property with the new
value, then raises the PropertyChanged event.
This overload is much less efficient than SetProperty``1(UMP, UMP, String) and it
should only be used when the former is not viable (eg. when the target property being
updated does not directly expose a backing field that can be passed by reference).
For performance reasons, it is recommended to use a stateful callback if possible through
the SetProperty``2(UMP, UMP, UMP, ActionUMP, UMP, String) whenever possible
instead of this overload, as that will allow the C# compiler to cache the input callback and
reduce the memory allocations. More info on that overload are available in the related XML
docs. This overload is here for completeness and in cases where that is not applicable.
(Inherited from ObservableObject.) |
![]() | SetProperty``1(UMP, UMP, IEqualityComparerUMP, ActionUMP, String) |
Compares the current and new values for a given property. If the value has changed,
raises the PropertyChanging event, updates the property with the new
value, then raises the PropertyChanged event.
See additional notes about this overload in SetProperty``1(UMP, UMP, ActionUMP, String).
(Inherited from ObservableObject.) |
![]() | SetProperty``2(UMP, UMP, UMP, ActionUMP, UMP, String) |
Compares the current and new values for a given nested property. If the value has changed,
raises the PropertyChanging event, updates the property and then raises the
PropertyChanged event. The behavior mirrors that of SetProperty``1(UMP, UMP, String),
with the difference being that this method is used to relay properties from a wrapped model in the
current instance. This type is useful when creating wrapping, bindable objects that operate over
models that lack support for notification (eg. for CRUD operations).
Suppose we have this model (eg. for a database row in a table):
(Inherited from ObservableObject.)public class Person { public string Name { get; set; } } public class BindablePerson : ObservableObject { public Model { get; } public BindablePerson(Person model) { Model = model; } public string Name { get => Model.Name; set => Set(Model.Name, value, Model, (model, name) => model.Name = name); } } |
![]() | SetProperty``2(UMP, UMP, IEqualityComparerUMP, UMP, ActionUMP, UMP, String) |
Compares the current and new values for a given nested property. If the value has changed,
raises the PropertyChanging event, updates the property and then raises the
PropertyChanged event. The behavior mirrors that of SetProperty``1(UMP, UMP, String),
with the difference being that this method is used to relay properties from a wrapped model in the
current instance. See additional notes about this overload in SetProperty``2(UMP, UMP, UMP, ActionUMP, UMP, String).
(Inherited from ObservableObject.) |
![]() | SetPropertyAndNotifyOnCompletion(TaskNotifier, Task, String) |
Compares the current and new values for a given field (which should be the backing
field for a property). If the value has changed, raises the PropertyChanging
event, updates the field and then raises the PropertyChanged event.
The behavior mirrors that of SetProperty``1(UMP, UMP, String), with the difference being that
this method will also monitor the new value of the property (a generic Task) and will also
raise the PropertyChanged again for the target property when it completes.
This can be used to update bindings observing that Task or any of its properties.
This method and its overload specifically rely on the TaskNotifier type, which needs
to be used in the backing field for the target Task property. The field doesn't need to be
initialized, as this method will take care of doing that automatically. The TaskNotifier
type also includes an implicit operator, so it can be assigned to any Task instance directly.
Here is a sample property declaration using this method:
(Inherited from ObservableObject.)private TaskNotifier myTask; public Task MyTask { get => myTask; private set => SetAndNotifyOnCompletion(ref myTask, value); } |
![]() | SetPropertyAndNotifyOnCompletion(TaskNotifier, Task, ActionTask, String) |
Compares the current and new values for a given field (which should be the backing
field for a property). If the value has changed, raises the PropertyChanging
event, updates the field and then raises the PropertyChanged event.
This method is just like SetPropertyAndNotifyOnCompletion(TaskNotifier, Task, String),
with the difference being an extra ActionT parameter with a callback being invoked
either immediately, if the new task has already completed or is , or upon completion.
(Inherited from ObservableObject.) |
![]() | SetPropertyAndNotifyOnCompletion``1(TaskNotifierUMP, TaskUMP, String) |
Compares the current and new values for a given field (which should be the backing
field for a property). If the value has changed, raises the PropertyChanging
event, updates the field and then raises the PropertyChanged event.
The behavior mirrors that of SetProperty``1(UMP, UMP, String), with the difference being that
this method will also monitor the new value of the property (a generic Task) and will also
raise the PropertyChanged again for the target property when it completes.
This can be used to update bindings observing that Task or any of its properties.
This method and its overload specifically rely on the TaskNotifier type, which needs
to be used in the backing field for the target Task property. The field doesn't need to be
initialized, as this method will take care of doing that automatically. The TaskNotifier
type also includes an implicit operator, so it can be assigned to any Task instance directly.
Here is a sample property declaration using this method:
(Inherited from ObservableObject.)private TaskNotifier<int> myTask; public Task<int> MyTask { get => myTask; private set => SetAndNotifyOnCompletion(ref myTask, value); } |
![]() | SetPropertyAndNotifyOnCompletion``1(TaskNotifierUMP, TaskUMP, ActionTaskUMP, String) |
Compares the current and new values for a given field (which should be the backing
field for a property). If the value has changed, raises the PropertyChanging
event, updates the field and then raises the PropertyChanged event.
This method is just like SetPropertyAndNotifyOnCompletion``1(TaskNotifierUMP, TaskUMP, String),
with the difference being an extra ActionT parameter with a callback being invoked
either immediately, if the new task has already completed or is , or upon completion.
(Inherited from ObservableObject.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | PropertyChanged | (Inherited from ObservableObject.) |
![]() | PropertyChanging | (Inherited from ObservableObject.) |