Kishore Kumar
Kishore Kumar

Reputation: 12874

How to send View Object to ViewModel in WPF MVVM?

I want to send my View Object to my ViewModel, How can i do that in WPF MVVM.

Note:

Actually what i am trying to do is.. I have a MainWindow for which i am not following MVVM and this MainWindow has a Canvas in which i place all my views which are UserControls. Now from a Particular View called Stock i want to add a UserControl "another View" to the Canvas children on a Button Click from Stock View

Upvotes: 0

Views: 1540

Answers (1)

N_A
N_A

Reputation: 19897

A view reference in your view model typically would be assigned on creation of your view.

Upvotes: 5

Related Questions