Questions tagged [mefedmvvm]
7 questions
2
votes
2 answers
How can MEF resolve dependencies of assemblies that don't live at the root of the application?
I have written my application to be a class library that is launched by a win32 MFC application. Each of my views is a separate assembly that is located with the base class library that is located in a sub-directory of the hosted MFC…

kgrandpak
- 48
- 7
2
votes
2 answers
Import allways returns null, but ImportConstructor works
I am trying to use MEF in my application, but I have problem with the Import.
[Import (typeof(IUserServices ))]
public IUserServices UserService { get; private set; }
This does not work and UserService is always null.
But using the…

MrSkyNavi
- 21
- 2
1
vote
1 answer
Best way to close Window with MEFedMVVM
In my Application i have a MainWindow that import over MEFedMVVM the ViewModel:
xmlns:mefed="clr-namespace:MEFedMVVM.ViewModelLocator;assembly=MEFedMVVM.WPF"
mefed:ViewModelLocator.ViewModel="MainViewModel"
And now i have my ViewModel too that…

San
- 868
- 1
- 9
- 18
0
votes
1 answer
MEFefMVVM.ViewModelLocator.ExportViewModel is not an attribute class
I am working with an WPF MVVM application.
My code look like :
View:

anu takle
- 1
- 1
- 2
0
votes
1 answer
Access the view from viewmodel using MEFedMVVM concepts?
In MEFedMVVM viewmodels are instantiated using ViewModelLocator. MEFedMVVM is really powerful, since you can have an arbitrary constructor for your viewmodels:
[ExportViewModel("MyViewModel")]
public class MyViewModel : NotifyPropertyChangedBase
{
…

l33t
- 18,692
- 16
- 103
- 180
0
votes
1 answer
Get ViewModel data using MEFedMVVM
I am currently using the MEFedMVVM framework to get access to ViewModels and want to know how to get data from another ViewModel currently being used. This is coupled with the use of Cinch.
At present my tab control is defined as…

framps
- 107
- 1
- 3
- 7
0
votes
1 answer
Implementing a view-model-first approach inside a parent view/view model using MEFedMVVM
I am writing a WPF application using MEF and a third-party library called MEFedMVVM.
I am attempting to create a design whereby a parent view model has a collection of child view models, and I wish to use the view-model-first approach as this keeps…

Neo
- 4,145
- 6
- 53
- 76