Generated by DocFX

Interface IViewModel

Interface IViewModel Implements the IObservableClass Implements the ICleanup

Inherited Members
IObservableClass.Validate(Boolean)
IObservableClass.Revert()
IObservableClass.MarkAsClean()
IObservableClass.Properties
IObservableClass.Errors
IObservableClass.Validator
IObservableClass.IsDirty
IObservableClass.IsValid
IObservableClass.AutomaticValidationTrigger
IObservableClass.AddValidationError(String, String)
IBindable.OnPropertyChanged(String)
ICleanup.Cleanup()
Namespace: ISynergy.Framework.Mvvm.Abstractions.ViewModels
Assembly: ISynergy.Framework.Mvvm.dll
Syntax
public interface IViewModel : IObservableClass, IBindable, ICleanup

Properties

View Source

BaseCommonServices

Gets the base common services.

Declaration
IBaseCommonServices BaseCommonServices { get; }
Property Value
Type Description
IBaseCommonServices

The base common services.

View Source

CanClose

Gets or sets a value indicating whether this instance can close.

Declaration
bool CanClose { get; set; }
Property Value
Type Description
System.Boolean

true if this instance can close; otherwise, false.

View Source

CloseCommand

Gets the close _command.

Declaration
RelayCommand CloseCommand { get; }
Property Value
Type Description
RelayCommand

The close _command.

View Source

Context

Gets the context.

Declaration
IContext Context { get; }
Property Value
Type Description
IContext

The context.

View Source

IsCancelled

Gets a value indicating whether this instance is cancelled.

Declaration
bool IsCancelled { get; }
Property Value
Type Description
System.Boolean

true if this instance is cancelled; otherwise, false.

View Source

IsInitialized

Gets or sets a value indicating whether this instance is initialized.

Declaration
bool IsInitialized { get; set; }
Property Value
Type Description
System.Boolean

true if this instance is initialized; otherwise, false.

View Source

IsRefreshing

Gets or sets a value indicating that viewmodel is refreshing.

Declaration
bool IsRefreshing { get; set; }
Property Value
Type Description
System.Boolean
View Source

Logger

Gets the logger.

Declaration
ILogger Logger { get; }
Property Value
Type Description
ILogger

The logger.

View Source

Parameter

Gets or sets an optional parameter.

Declaration
object Parameter { get; set; }
Property Value
Type Description
System.Object
View Source

Title

Gets the title.

Declaration
string Title { get; }
Property Value
Type Description
System.String

The title.

Methods

View Source

InitializeAsync()

Initializes the asynchronous.

Declaration
Task InitializeAsync()
Returns
Type Description
Task

Task.

View Source

OnCancelled(EventArgs)

Declaration
void OnCancelled(EventArgs e)
Parameters
Type Name Description
EventArgs e
View Source

OnClosed(EventArgs)

Declaration
void OnClosed(EventArgs e)
Parameters
Type Name Description
EventArgs e
View Source

OnPropertyChanged(Object, PropertyChangedEventArgs)

Handles the PropertyChanged event.

Declaration
void OnPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

PropertyChangedEventArgs e

The instance containing the event data.

Events

View Source

Cancelled

Occurs when [cancelled].

Declaration
event EventHandler Cancelled
Event Type
Type Description
EventHandler
View Source

Closed

Occurs when [closed].

Declaration
event EventHandler Closed
Event Type
Type Description
EventHandler

Extension Methods

ViewModelExtensions.GetViewModelName(IViewModel)
ViewModelExtensions.GetViewModelFullName(IViewModel)
ViewModelExtensions.GetViewFullName(IViewModel)
Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)

See Also

IObservableClass
ICleanup