Enables the view to be associated with a session.
The ResolveSession event handler receives an argument of the ResolveSessionEventArgs type. The following properties provide information specific to this event.
|Session||Specifies the session to be used to load and save persistent objects.|
The ResolveSession event is raised when the view whose XPView.Session property isn't specified, requests a session that represents a data store where persistent objects are stored. Handle this event to associate the view with a session. This can be useful when you create an XPView at design time and want to associate it with a session (unit of work) created at runtime.
If the session isn't specified, the view works with the default session (Session.DefaultSession).