I have this question about the use of factories while using dependency injection:
if I have a ViewModel that has to create another one through a Factory, it needs the factory to be injected via ctor, but if the new VM has to do a similar operation, do I have to have one factory to be injected into the other?
This would bring to a chained factory injection into the other.
Is this a good practice? Personally I don't like it. Is there any better solution?
I don't see why it would be a problem. The factory can inject itself into the created ViewModel if necessary.