none
How to find a specific control from MVVM RRS feed

  • Question

  • Dear all,

    I have an application structure using Prism and MVVM for rendering views.
    At some point from my MVVM I need to find a specific control in visual tree.

    For exemple I have a view name myView which is a userControl hosting XAML element and for which its DataContext is set to myViewViewModel.

    Inside myViewViewModel, I need to find a control in myView. For that I was planning to use FindViualPrent or Child but they require a DependcyObject as parameter which I do not have directly access from my ViewModel.

    What is the way to do that ?

    Thanks for advise

    Thursday, May 24, 2018 7:14 AM

Answers

All replies