简体   繁体   中英

MVVM light toolkit: New Window

I have been searching but I have not been able to find an example that uses MVVM light toolkit that loads a new window. I would like an example that passes between both the parent and child window.

For exmaple I am in my MainWindow.xaml and I want to be able to load a new window, both bring in view at the same time. Not a pop up window.

I am using WPF.

Any examples would be a great help?

Thanks

You can use an UIService class that will handle the creation/desctrution of new Windows in your application.

For example, take a look at Cinch (http://cinch.codeplex.com/) which propose the following UIServices:

  • UI Services Event Logger (Cinch V1 Only)
  • MessageBox (Cinch V1 and Cinch V2 WPF/SL)
  • Open File (Cinch V1 and Cinch V2 WPF)
  • Save File (Cinch V1 and Cinch V2 WPF)
  • Popup Window (Cinch V1 and Cinch V2 WPF)
  • Child Window (Cinch V2 SL)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM