DetermineViewModelInstanceEventArgs

Name Value
Assembly Catel.MVVM
Namespace Catel.MVVM.Providers
Available on .NET Framework 4.5, .NET Framework 4.6, Xamarin - Android, Xamarin - iOS
public class DetermineViewModelInstanceEventArgs : EventArgs

Base types EventArgs

EventArgs class which allows late-time dynamic view model determination.

Constructors

DetermineViewModelInstanceEventArgs(object dataContext)

Initializes a new instance of the DetermineViewModelInstanceEventArgs class.

Parameters

Name Description
dataContext The data context.

Properties

DataContext

Gets the data context.

DoNotCreateViewModel

Gets or sets a value indicating whether the logic should create a view model by itself when the ViewModel isnull. By default, this value isfalse.

ViewModel

Gets or sets the view model.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion