Skip to content

v1.4 IViewLoaded, IViewClosing, IViewClosed

Compare
Choose a tag to compare
@mysteryx93 mysteryx93 released this 30 Aug 00:18
· 89 commits to master since this release

Version 1.4 is ready!

Handling Loading, Closing and Closed events presents a few annoyances.

Loading is a common business concern. Why would you have to write code in your View for it?

Closing is generally used to display a confirmation before exit. Calling async code from the Closing event would require complex code, both in the ViewModel and the View.

Closed cannot even call a command via an XAML behavior!

As a simple solution, you can implement IViewLoaded, IViewClosing and/or IViewClosed from your ViewModel with no code required in your View.

What's new in v1.4:

  • IViewLoaded, IViewClosing and IViewClosed interfaces have been added. See documentation.
  • Owner parameters are now optional, it's up to the implementation as to whether or not it is supported
  • IWindow has been renamed to IView
  • Fixed a bug with Fluent TaskMessageBox