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
Post a Comment