MruManager Class |
Namespace: BionicCode.Utilities.Net.Framework.Wpf.Settings
public class MruManager : ViewModel, IMruManager, IViewModel, INotifyPropertyChanged, INotifyDataErrorInfo
The MruManager type exposes the following members.
Name | Description | |
---|---|---|
![]() | MruManager |
Default constructor
|
Name | Description | |
---|---|---|
![]() | HasErrors | Gets a value that indicates whether the entity has validation errors. (Inherited from ViewModel.) |
![]() | InternalMostRecentlyUsedFiles |
The underlying collection that holds the MostRecentlyUsedFileItem elements. This collection is the source for the public MostRecentlyUsedFiles property, which is a ReadOnlyObservableCollection<T>. |
![]() | MaxMostRecentlyUsedCount |
The maximum number of files that are kept in the MRU table. The default value is 10. |
![]() | MostRecentlyUsedFile |
Gets the MRU file which is the last file added to the MRU table.
|
![]() | MostRecentlyUsedFiles |
A ReadOnlyObservableCollection<T> collection of MostRecentlyUsedFileItem which contains the MRU files.
|
Name | Description | |
---|---|---|
![]() | AddMostRecentlyUsedFile |
Adds a file with the specified path to the MRU table.
|
![]() | Clear |
Clears the MRU list.
|
![]() | 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.) |
![]() | GetErrors |
Gets all error messages of the specified property. If the propertyName is null all error messages will be returned.
(Inherited from ViewModel.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetPropertyErrors |
Gets all error messages of the specified property. If the propertyName is null all error messages will be returned.
(Inherited from ViewModel.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsMruCountValid |
Property validation delegate. Validates the MaxMostRecentlyUsedCount property values.
|
![]() | IsValueValid<TValue> |
Can be used to check whether a value is valid.
(Inherited from ViewModel.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnErrorsChanged |
Raised when the validation state of the view model has changed (e.g. error added or removed).
(Inherited from ViewModel.) |
![]() | OnFileAdded |
Called when the InternalMostRecentlyUsedFiles has changed.
|
![]() | OnPropertyChanged |
Method called to fire a PropertyChanged event.
Also raises the PropertyChanged event to support binding.
(Inherited from ViewModel.) |
![]() | PropertyHasError |
Checks whether the specified property has errors or is valid.
(Inherited from ViewModel.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TrySetValue<TValue>(TValue, TValue, String) |
Generic property setter. Sets the value of any property of the extending view model by passing in a the corresponding property backing field. Automatically raises the PropertyChanged event for this property.
(Inherited from ViewModel.) |
![]() | TrySetValue<TValue>(TValue, Func<TValue, ValueTuple<Boolean, IEnumerable<String>>>, TValue, Boolean, Boolean, String) |
Sets the value of the referenced property and executes a validation delegate.
(Inherited from ViewModel.) |
![]() | TrySetValueSilent<TValue>(TValue, TValue, String) |
Generic property setter. Silently sets the value of any property of the extending view model by passing in a the corresponding property backing field. Suppresses a PropertyChanged event for this property.
(Inherited from ViewModel.) |
![]() | TrySetValueSilent<TValue>(TValue, Func<TValue, ValueTuple<Boolean, IEnumerable<String>>>, TValue, Boolean, Boolean, String) |
Silently sets the value of the referenced property without raising PropertyChanged and executes a validation delegate.
(Inherited from ViewModel.) |
Name | Description | |
---|---|---|
![]() | ErrorsChanged | Occurs when the validation errors have changed for a property or for the entire entity. (Inherited from ViewModel.) |
![]() | FileAdded |
Raised when a new file was added to the MRU list. The event args contains the old and the new MostRecentlyUsedFileItem. Once the max MostRecentlyUsedFileItem limit is reached, the least used file will be removed from the list to make space for the new item. In this case the OldValue is the removed oldest item in the list. Otherwise OldValue will be null. |
![]() | PropertyChanged |
Event fired whenever a child property changes its value.
(Inherited from ViewModel.) |
![]() | PropertyValueChanged |
PropertyChanged implementation that sends old value and new value of the change and raises the INotifyPropertyChanged event.
(Inherited from ViewModel.) |
Name | Description | |
---|---|---|
![]() | ToDictionary() | Overloaded.
Coverts any type to a Dictionary<TKey, TValue>, where the TKey is the member name and TValue the member's value.
(Defined by HelperExtensions.) |
![]() | ToDictionary() | Overloaded.
Coverts any type to a Dictionary<TKey, TValue>, where the TKey is the member name and TValue the member's value.
(Defined by HelperExtensions.) |