实例介绍
插件式开发,MEF结合MVVMLight的简单应用。供大家参考
【实例截图】
【核心代码】
MVVMLight
└── MVVMLight
└── Test
├── Contract
│ ├── bin
│ │ └── Debug
│ │ ├── Contract.dll
│ │ └── Contract.pdb
│ ├── Contract.csproj
│ ├── IModel.cs
│ ├── ITest2.cs
│ ├── ITest.cs
│ ├── ITestMetadata.cs
│ ├── obj
│ │ └── Debug
│ │ ├── Contract.csproj.FileListAbsolute.txt
│ │ ├── Contract.dll
│ │ ├── Contract.pdb
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TestMetadataAttribute.cs
├── InputControl
│ ├── bin
│ │ └── Debug
│ │ ├── 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
│ │ ├── InputControl.dll
│ │ ├── InputControl.pdb
│ │ ├── Microsoft.Practices.ServiceLocation.dll
│ │ ├── Microsoft.Practices.ServiceLocation.pdb
│ │ ├── Microsoft.Practices.ServiceLocation.xml
│ │ └── System.Windows.Interactivity.dll
│ ├── InputControl.csproj
│ ├── InputUserControl.xaml
│ ├── InputUserControl.xaml.cs
│ ├── InputViewModel.cs
│ ├── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── InputControl.csproj.FileListAbsolute.txt
│ │ ├── InputControl.csproj.GenerateResource.Cache
│ │ ├── InputControl.csprojResolveAssemblyReference.cache
│ │ ├── InputControl.dll
│ │ ├── InputControl.g.resources
│ │ ├── InputControl_MarkupCompile.cache
│ │ ├── InputControl_MarkupCompile.i.cache
│ │ ├── InputControl_MarkupCompile.lref
│ │ ├── InputControl.pdb
│ │ ├── InputControl.Properties.Resources.resources
│ │ ├── InputUserControl.baml
│ │ ├── InputUserControl.g.cs
│ │ ├── InputUserControl.g.i.cs
│ │ ├── 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
│ │ └── UserControl1.g.i.cs
│ ├── packages.config
│ └── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Model
│ ├── bin
│ │ └── Debug
│ │ ├── Contract.dll
│ │ ├── Contract.pdb
│ │ ├── Model.dll
│ │ └── Model.pdb
│ ├── Model.csproj
│ ├── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── Model.csproj.FileListAbsolute.txt
│ │ ├── Model.csprojResolveAssemblyReference.cache
│ │ ├── Model.dll
│ │ ├── Model.pdb
│ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TestModel.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
│ └── 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
├── PluginControl
│ ├── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── PluginControl.csproj.FileListAbsolute.txt
│ │ ├── PluginControl.csproj.GenerateResource.Cache
│ │ ├── PluginControl.csprojResolveAssemblyReference.cache
│ │ ├── PluginUserControl.baml
│ │ ├── PluginUserControl.g.cs
│ │ ├── PluginUserControl.g.i.cs
│ │ ├── PulginControl.csproj.FileListAbsolute.txt
│ │ ├── PulginControl.csproj.GenerateResource.Cache
│ │ ├── PulginControl.csprojResolveAssemblyReference.cache
│ │ ├── PulginControl.dll
│ │ ├── PulginControl.g.resources
│ │ ├── PulginControl_MarkupCompile.cache
│ │ ├── PulginControl_MarkupCompile.i.cache
│ │ ├── PulginControl_MarkupCompile.lref
│ │ ├── PulginControl.pdb
│ │ ├── PulginControl.Properties.Resources.resources
│ │ ├── 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
│ │ └── UserControl1.g.i.cs
│ ├── packages.config
│ ├── PluginControl.csproj
│ ├── PluginUserControl.xaml
│ ├── PluginUserControl.xaml.cs
│ ├── PluginViewModel.cs
│ └── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── PluginControl2
│ ├── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── PluginControl2.csproj.FileListAbsolute.txt
│ │ ├── PluginControl2.csproj.GenerateResource.Cache
│ │ ├── PluginControl2.csprojResolveAssemblyReference.cache
│ │ ├── PluginControl.csproj.FileListAbsolute.txt
│ │ ├── PluginControl.csproj.GenerateResource.Cache
│ │ ├── PluginControl.csprojResolveAssemblyReference.cache
│ │ ├── PluginUserControl2.g.i.cs
│ │ ├── PluginUserControl.baml
│ │ ├── PluginUserControl.g.cs
│ │ ├── PluginUserControl.g.i.cs
│ │ ├── PulginControl2.dll
│ │ ├── PulginControl2.g.resources
│ │ ├── PulginControl2_MarkupCompile.cache
│ │ ├── PulginControl2_MarkupCompile.i.cache
│ │ ├── PulginControl2_MarkupCompile.lref
│ │ ├── PulginControl2.pdb
│ │ ├── PulginControl2.Properties.Resources.resources
│ │ ├── PulginControl.csproj.FileListAbsolute.txt
│ │ ├── PulginControl.csproj.GenerateResource.Cache
│ │ ├── PulginControl.csprojResolveAssemblyReference.cache
│ │ ├── PulginControl.dll
│ │ ├── PulginControl.g.resources
│ │ ├── PulginControl_MarkupCompile.cache
│ │ ├── PulginControl_MarkupCompile.i.cache
│ │ ├── PulginControl_MarkupCompile.lref
│ │ ├── PulginControl.pdb
│ │ ├── PulginControl.Properties.Resources.resources
│ │ ├── 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
│ │ └── UserControl1.g.i.cs
│ ├── packages.config
│ ├── PluginControl2.csproj
│ ├── PluginUserControl.xaml
│ ├── PluginUserControl.xaml.cs
│ ├── PluginViewModel.cs
│ └── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Test
│ ├── App.config
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── bin
│ │ └── Debug
│ │ ├── Contract.dll
│ │ ├── Contract.pdb
│ │ ├── 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
│ │ ├── Microsoft.Practices.ServiceLocation.dll
│ │ ├── Microsoft.Practices.ServiceLocation.pdb
│ │ ├── Microsoft.Practices.ServiceLocation.xml
│ │ ├── Model.dll
│ │ ├── Model.pdb
│ │ ├── Plugins
│ │ │ ├── InputControl.dll
│ │ │ ├── InputControl.pdb
│ │ │ ├── PulginControl2.dll
│ │ │ ├── PulginControl2.pdb
│ │ │ ├── PulginControl.dll
│ │ │ └── PulginControl.pdb
│ │ ├── System.Windows.Interactivity.dll
│ │ ├── Test.exe
│ │ ├── Test.exe.CodeAnalysisLog.xml
│ │ ├── Test.exe.config
│ │ ├── Test.exe.lastcodeanalysissucceeded
│ │ ├── Test.pdb
│ │ ├── Test.vshost.exe
│ │ ├── Test.vshost.exe.config
│ │ └── Test.vshost.exe.manifest
│ ├── Design
│ │ └── DesignDataService.cs
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── Model
│ │ ├── DataItem.cs
│ │ ├── DataService.cs
│ │ └── IDataService.cs
│ ├── obj
│ │ └── Debug
│ │ ├── App.baml
│ │ ├── App.g.cs
│ │ ├── App.g.i.cs
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── GeneratedInternalTypeHelper.g.cs
│ │ ├── GeneratedInternalTypeHelper.g.i.cs
│ │ ├── MainWindow.baml
│ │ ├── MainWindow.g.cs
│ │ ├── MainWindow.g.i.cs
│ │ ├── Skins
│ │ │ └── MainSkin.baml
│ │ ├── 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
│ │ ├── Test.csproj.FileListAbsolute.txt
│ │ ├── Test.csproj.GenerateResource.Cache
│ │ ├── Test.csprojResolveAssemblyReference.cache
│ │ ├── Test.exe
│ │ ├── Test.g.resources
│ │ ├── Test_MarkupCompile.cache
│ │ ├── Test_MarkupCompile.i.cache
│ │ ├── Test_MarkupCompile.lref
│ │ ├── Test.pdb
│ │ └── Test.Properties.Resources.resources
│ ├── packages.config
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── Skins
│ │ └── MainSkin.xaml
│ ├── Test.csproj
│ └── ViewModel
│ ├── MainViewModel.cs
│ └── ViewModelLocator.cs
└── Test.sln
61 directories, 327 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论