weissdigital.xamarin.addins.mvxcontentpage
使用扩展MvxViewModel的CodeBehind类创建表单MVVMCross MvxContentPage。
创建的文件如下:
Xaml文件:
<? xml version = " 1.0 " encoding = " utf-8 " ?>
< Mvx : MvxContentPage
x : TypeArguments = " ViewModels:PageViewModel "
xmlns = " http://xamarin.com/schemas/2014/forms "
xmlns : x = " http://schemas.microsoft.com/winfx/2009/xaml "
xmlns : Mvx = " clr-namespace:MvvmCross.Forms.Views;assembly=MvvmCross.Forms "
xmlns : ViewModels = " clr-namespace:MyForms
1