Back to Class Reference home page
Windows.UI.Xaml.Controls.Page | System.Windows.Window | Microsoft.Phone.Controls.PhoneApplicationPage | Xamarin.Forms.ContentPage
MVVMbasics.Views.BaseView
public class BaseView : Page | Window | PhoneApplicationPage | ContentPage
Basic view all pages / windows can be derived from. Overrides page / window load- and unload-events and passes them to the Viewmodel, if any Viewmodel has been registered.
Property Summary | |
---|---|
public BaseViewmodel Viewmodel
Viewmodel instance that acts as this View's DataContext .
|
Constructor Summary | |
---|---|
public |
BaseView()
Constructor. |
Method Summary | |
---|---|
protected void |
EventToCommand(object sender, EventArgs | RoutedEventArgs args)
Generic event handler that can be used by any visual control to route the desired event to a Viewmodel Command. In addition to the EventToCommand event handler, the control must specify the attached property Command.
|