实例介绍
测试实例MVVMLightDemo全面使用实例,MVVMLight使用标准参考官方文档
【实例截图】
【核心代码】
MVVMLightDemo
└── MVVMLightDemo
├── App.config
├── App.xaml
├── App.xaml.cs
├── Assets
│ └── TextBox.xaml
├── bin
│ └── Debug
│ ├── de
│ │ └── System.Windows.Interactivity.resources.dll
│ ├── en
│ │ └── System.Windows.Interactivity.resources.dll
│ ├── es
│ │ └── System.Windows.Interactivity.resources.dll
│ ├── fr
│ │ └── System.Windows.Interactivity.resources.dll
│ ├── GalaSoft.MvvmLight.dll
│ ├── GalaSoft.MvvmLight.Extras.dll
│ ├── GalaSoft.MvvmLight.Extras.pdb
│ ├── GalaSoft.MvvmLight.Extras.xml
│ ├── GalaSoft.MvvmLight.pdb
│ ├── GalaSoft.MvvmLight.Platform.dll
│ ├── GalaSoft.MvvmLight.Platform.pdb
│ ├── GalaSoft.MvvmLight.Platform.xml
│ ├── GalaSoft.MvvmLight.xml
│ ├── it
│ │ └── System.Windows.Interactivity.resources.dll
│ ├── ja
│ │ └── System.Windows.Interactivity.resources.dll
│ ├── ko
│ │ └── System.Windows.Interactivity.resources.dll
│ ├── Microsoft.Practices.ServiceLocation.dll
│ ├── Microsoft.Practices.ServiceLocation.pdb
│ ├── Microsoft.Practices.ServiceLocation.xml
│ ├── MVVMLightDemo.exe
│ ├── MVVMLightDemo.exe.config
│ ├── MVVMLightDemo.pdb
│ ├── MVVMLightDemo.vshost.exe
│ ├── MVVMLightDemo.vshost.exe.config
│ ├── MVVMLightDemo.vshost.exe.manifest
│ ├── ru
│ │ └── System.Windows.Interactivity.resources.dll
│ ├── System.Windows.Interactivity.dll
│ ├── TelerikWpfApp1.vshost.exe.config
│ ├── TelerikWpfApp1.vshost.exe.manifest
│ ├── zh-Hans
│ │ └── System.Windows.Interactivity.resources.dll
│ └── zh-Hant
│ └── System.Windows.Interactivity.resources.dll
├── ClassDiagram1.cd
├── Common
│ ├── BoolToVisibility.cs
│ ├── CreateUserInfoHelper.cs
│ ├── CreateUserInfoThread.cs
│ ├── InitDataHelper.cs
│ ├── IntegerToSex.cs
│ ├── LogonButtonEnableConvert .cs
│ ├── ValidateModelBase.cs
│ └── ValidationRuleAssembly.cs
├── Content
│ ├── FruitInfoView.xaml
│ └── FruitInfoView.xaml.cs
├── Images
│ ├── 1.jpg
│ ├── 2.jpg
│ ├── 3.jpg
│ ├── 4.jpg
│ └── 5.jpg
├── MainWindow.xaml
├── MainWindow.xaml.cs
├── Model
│ ├── CompBottonModel.cs
│ ├── ComplexInfoModel.cs
│ ├── CustomClass.cs
│ ├── ResTypeModel.cs
│ ├── TreeNodeModel.cs
│ ├── UserInfoModel.cs
│ ├── UserParam.cs
│ ├── ValidateUserInfo.cs
│ └── WelcomeModel.cs
├── MVVMLightDemo.csproj
├── MVVMLightDemo.csproj.user
├── MVVMLightDemo.sln
├── obj
│ └── x86
│ └── Debug
│ ├── App.baml
│ ├── App.g.cs
│ ├── App.g.i.cs
│ ├── Assets
│ │ └── TextBox.baml
│ ├── Content
│ │ ├── FruitInfoView.baml
│ │ ├── FruitInfoView.g.cs
│ │ ├── FruitInfoView.g.i.cs
│ │ ├── FruitInfoViewx.g.i.cs
│ │ └── FruitInfoxView.g.i.cs
│ ├── DesignTimeResolveAssemblyReferences.cache
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── GeneratedInternalTypeHelper.g.cs
│ ├── GeneratedInternalTypeHelper.g.i.cs
│ ├── MainWindow.baml
│ ├── MainWindow.g.cs
│ ├── MainWindow.g.i.cs
│ ├── Model
│ │ └── UserInfoView.g.i.cs
│ ├── MVVMLightDemo_Content.g.i.cs
│ ├── MVVMLightDemo.csproj.FileListAbsolute.txt
│ ├── MVVMLightDemo.csproj.GenerateResource.Cache
│ ├── MVVMLightDemo.csprojResolveAssemblyReference.cache
│ ├── MVVMLightDemo.exe
│ ├── MVVMLightDemo.g.resources
│ ├── MVVMLightDemo_MarkupCompile.cache
│ ├── MVVMLightDemo_MarkupCompile.i.cache
│ ├── MVVMLightDemo_MarkupCompile.lref
│ ├── MVVM Light Demon.csproj.FileListAbsolute.txt
│ ├── MVVM Light Demon.csproj.GenerateResource.Cache
│ ├── MVVMLightDemo.pdb
│ ├── MVVMLightDemo.Properties.Resources.resources
│ ├── Page1.g.i.cs
│ ├── TelerikWpfApp1.csproj.FileListAbsolute.txt
│ ├── TelerikWpfApp1.csproj.GenerateResource.Cache
│ ├── TelerikWpfApp1.csprojResolveAssemblyReference.cache
│ ├── TelerikWpfApp1_MarkupCompile.i.cache
│ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── TempPE
│ │ └── Properties.Resources.Designer.cs.dll
│ ├── View
│ │ ├── BindBasic.baml
│ │ ├── BindBasic.g.cs
│ │ ├── BindBasic.g.i.cs
│ │ ├── BindingAdvancedView.baml
│ │ ├── BindingAdvancedView.g.cs
│ │ ├── BindingAdvancedView.g.i.cs
│ │ ├── BindingForm.g.i.cs
│ │ ├── BindingFormView.baml
│ │ ├── BindingFormView.g.cs
│ │ ├── BindingFormView.g.i.cs
│ │ ├── BothWayBindView.baml
│ │ ├── BothWayBindView.g.cs
│ │ ├── BothWayBindView.g.i.cs
│ │ ├── ComboBox.baml
│ │ ├── ComboBox.g.cs
│ │ ├── ComboBox.g.i.cs
│ │ ├── CommandAdvanceView.baml
│ │ ├── CommandAdvanceView.g.cs
│ │ ├── CommandAdvanceView.g.i.cs
│ │ ├── CommandView.baml
│ │ ├── CommandView.g.cs
│ │ ├── CommandView.g.i.cs
│ │ ├── DispatchBasic.baml
│ │ ├── DispatchBasic.g.cs
│ │ ├── DispatchBasic.g.i.cs
│ │ ├── DispatcherHelper.baml
│ │ ├── DispatcherHelper.g.cs
│ │ ├── DispatcherHelper.g.i.cs
│ │ ├── Index.baml
│ │ ├── Index.g.cs
│ │ ├── Index.g.i.cs
│ │ ├── MessageRegister.g.i.cs
│ │ ├── MessageRegisterView.g.i.cs
│ │ ├── MessagerForDispatch.baml
│ │ ├── MessagerForDispatch.g.cs
│ │ ├── MessagerForDispatch.g.i.cs
│ │ ├── MessagerForView.baml
│ │ ├── MessagerForView.g.cs
│ │ ├── MessagerForView.g.i.cs
│ │ ├── MessengerForSource.baml
│ │ ├── MessengerForSource.g.cs
│ │ ├── MessengerForSource.g.i.cs
│ │ ├── MessengerRegisterView.baml
│ │ ├── MessengerRegisterView.g.cs
│ │ ├── MessengerRegisterView.g.i.cs
│ │ ├── MessengerSenderCollector.baml
│ │ ├── MessengerSenderCollector.g.cs
│ │ ├── MessengerSenderCollector.g.i.cs
│ │ ├── MessengerSenderView.baml
│ │ ├── MessengerSenderView.g.cs
│ │ ├── MessengerSenderView.g.i.cs
│ │ ├── NessagerForView.g.i.cs
│ │ ├── PackagedValidate.baml
│ │ ├── PackagedValidate.g.cs
│ │ ├── PackagedValidate.g.i.cs
│ │ ├── SenderWindowView.g.i.cs
│ │ ├── TestGrid.g.i.cs
│ │ ├── WelcomeView.baml
│ │ ├── WelcomeView.g.cs
│ │ └── WelcomeView.g.i.cs
│ ├── ViewModel
│ │ └── WelcomeViewModel.g.i.cs
│ └── Window1.g.i.cs
├── packages
│ ├── CommonServiceLocator.1.3
│ │ ├── CommonServiceLocator.1.3.nupkg
│ │ └── lib
│ │ └── portable-net4+sl5+netcore45+wpa81+wp8
│ │ ├── Microsoft.Practices.ServiceLocation.dll
│ │ ├── Microsoft.Practices.ServiceLocation.pdb
│ │ └── Microsoft.Practices.ServiceLocation.XML
│ ├── MvvmLight.5.3.0.0
│ │ ├── Content
│ │ │ └── ViewModel
│ │ │ ├── MainViewModel.cs.pp
│ │ │ └── ViewModelLocator.cs.pp
│ │ ├── MvvmLight.5.3.0.0.nupkg
│ │ └── tools
│ │ └── install.ps1
│ └── MvvmLightLibs.5.3.0.0
│ ├── lib
│ │ ├── monoandroid1
│ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ │ ├── GalaSoft.MvvmLight.Extras.XML
│ │ │ ├── GalaSoft.MvvmLight.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.dll
│ │ │ ├── GalaSoft.MvvmLight.Platform.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.XML
│ │ │ └── GalaSoft.MvvmLight.XML
│ │ ├── net35
│ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ │ ├── GalaSoft.MvvmLight.Extras.xml
│ │ │ ├── GalaSoft.MvvmLight.pdb
│ │ │ ├── GalaSoft.MvvmLight.xml
│ │ │ ├── System.Windows.Interactivity.dll
│ │ │ └── System.Windows.Interactivity.xml
│ │ ├── net40
│ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ │ ├── GalaSoft.MvvmLight.Extras.xml
│ │ │ ├── GalaSoft.MvvmLight.pdb
│ │ │ ├── GalaSoft.MvvmLight.xml
│ │ │ ├── System.Windows.Interactivity.dll
│ │ │ └── System.Windows.Interactivity.xml
│ │ ├── net45
│ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ │ ├── GalaSoft.MvvmLight.Extras.xml
│ │ │ ├── GalaSoft.MvvmLight.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.dll
│ │ │ ├── GalaSoft.MvvmLight.Platform.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.xml
│ │ │ ├── GalaSoft.MvvmLight.xml
│ │ │ └── System.Windows.Interactivity.dll
│ │ ├── portable-net45+wp8+wpa81+netcore45+monoandroid1+xamarin.ios10
│ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ │ ├── GalaSoft.MvvmLight.Extras.XML
│ │ │ ├── GalaSoft.MvvmLight.pdb
│ │ │ └── GalaSoft.MvvmLight.XML
│ │ ├── SL5
│ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ │ ├── GalaSoft.MvvmLight.Extras.xml
│ │ │ ├── GalaSoft.MvvmLight.pdb
│ │ │ ├── GalaSoft.MvvmLight.xml
│ │ │ └── System.Windows.Interactivity.dll
│ │ ├── windows81
│ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ │ ├── GalaSoft.MvvmLight.Extras.xml
│ │ │ ├── GalaSoft.MvvmLight.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.dll
│ │ │ ├── GalaSoft.MvvmLight.Platform.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.pri
│ │ │ ├── GalaSoft.MvvmLight.Platform.xml
│ │ │ └── GalaSoft.MvvmLight.xml
│ │ ├── wp8
│ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ │ ├── GalaSoft.MvvmLight.Extras.xml
│ │ │ ├── GalaSoft.MvvmLight.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.dll
│ │ │ ├── GalaSoft.MvvmLight.Platform.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.xml
│ │ │ ├── GalaSoft.MvvmLight.xml
│ │ │ └── System.Windows.Interactivity.dll
│ │ ├── wp81
│ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ │ ├── GalaSoft.MvvmLight.Extras.xml
│ │ │ ├── GalaSoft.MvvmLight.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.dll
│ │ │ ├── GalaSoft.MvvmLight.Platform.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.xml
│ │ │ ├── GalaSoft.MvvmLight.xml
│ │ │ └── System.Windows.Interactivity.dll
│ │ ├── wpa81
│ │ │ ├── GalaSoft.MvvmLight.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ │ ├── GalaSoft.MvvmLight.Extras.XML
│ │ │ ├── GalaSoft.MvvmLight.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.dll
│ │ │ ├── GalaSoft.MvvmLight.Platform.pdb
│ │ │ ├── GalaSoft.MvvmLight.Platform.pri
│ │ │ ├── GalaSoft.MvvmLight.Platform.XML
│ │ │ └── GalaSoft.MvvmLight.XML
│ │ └── xamarin.ios10
│ │ ├── GalaSoft.MvvmLight.dll
│ │ ├── GalaSoft.MvvmLight.Extras.dll
│ │ ├── GalaSoft.MvvmLight.Extras.pdb
│ │ ├── GalaSoft.MvvmLight.Extras.XML
│ │ ├── GalaSoft.MvvmLight.pdb
│ │ ├── GalaSoft.MvvmLight.Platform.dll
│ │ ├── GalaSoft.MvvmLight.Platform.XML
│ │ └── GalaSoft.MvvmLight.XML
│ └── MvvmLightLibs.5.3.0.0.nupkg
├── packages.config
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── View
│ ├── BindBasic.xaml
│ ├── BindBasic.xaml.cs
│ ├── BindingAdvancedView.xaml
│ ├── BindingAdvancedView.xaml.cs
│ ├── BindingFormView.xaml
│ ├── BindingFormView.xaml.cs
│ ├── BothWayBindView.xaml
│ ├── BothWayBindView.xaml.cs
│ ├── ComboBox.xaml
│ ├── ComboBox.xaml.cs
│ ├── CommandAdvanceView.xaml
│ ├── CommandAdvanceView.xaml.cs
│ ├── CommandView.xaml
│ ├── CommandView.xaml.cs
│ ├── DispatchBasic.xaml
│ ├── DispatchBasic.xaml.cs
│ ├── DispatcherHelper.xaml
│ ├── DispatcherHelper.xaml.cs
│ ├── Index.xaml
│ ├── Index.xaml.cs
│ ├── MessagerForDispatch.xaml
│ ├── MessagerForDispatch.xaml.cs
│ ├── MessagerForView.xaml
│ ├── MessagerForView.xaml.cs
│ ├── MessengerForSource.xaml
│ ├── MessengerForSource.xaml.cs
│ ├── MessengerRegisterView.xaml
│ ├── MessengerRegisterView.xaml.cs
│ ├── MessengerSenderCollector.xaml
│ ├── MessengerSenderCollector.xaml.cs
│ ├── MessengerSenderView.xaml
│ ├── MessengerSenderView.xaml.cs
│ ├── PackagedValidate.xaml
│ ├── PackagedValidate.xaml.cs
│ ├── WelcomeView.xaml
│ └── WelcomeView.xaml.cs
└── ViewModel
├── BindDataAnnotationsViewModel.cs
├── BindingAdvancedViewModel.cs
├── BindingFormViewModel.cs
├── BothWayBindViewModel.cs
├── ComboBoxViewModel.cs
├── CommandAdvanceViewModel.cs
├── CommandViewModel.cs
├── DispatcherHelperViewModel.cs
├── FruitInfoViewModel.cs
├── MainViewModel.cs
├── MessengerForDispatchViewModel.cs
├── MessengerForSourceSenderViewModel.cs
├── MessengerForSourceViewModel.cs
├── MessengerRegisterForVViewModel.cs
├── MessengerRegisterViewModel.cs
├── MessengerSenderViewModel.cs
├── PackagedValidateViewModel.cs
├── PropertyChangedViewModel.cs
├── ValidateExceptionViewModel.cs
├── ValidationRuleViewModel.cs
├── ViewModelLocator.cs
└── WelcomeViewModel.cs
51 directories, 335 files
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论