Paul Stanley
Paul Stanley

Reputation: 2161

Uwp Prism No Viewmodel Locator

If I want to use a page viewmodel and reference child viewmodels as properties of the parent how do I associate the child view to child viewmodel?

Upvotes: 1

Views: 60

Answers (1)

Haukinger
Haukinger

Reputation: 10863

You define a data template containing the child view for the child view model.

Edit: navigating view model-first is perfectly fine in a mvvm-context. In fact, one could argue that the view model locator may be bad style... but it is so handy and so widely used today, that it doesn't really matter.

Upvotes: 1

Related Questions