wpf - How to access control in viewmodel -


My app is in WPF, VS 2010 Prism and Unity. At the time of initializing the constructor for Adoller, I want to use visual dockpanel control in View Module. Any help would be appreciated.

The simple way is that you can see IUnityContainer and resolve You can use the control such as:

  Read Only IUnityContainer_container; Public Constructor (IUnityContainer Container) {_container = Container; Var resolved = _container.Resolve & lt; IEmployeeView & gt; (); // See your solution thoughts as Var consider = your solution as UVFMA; // Get more control Var control = view. YOURDOCPANELNAME; }  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -