xpo-devexpress-dot-xpo-dot-xpinstantfeedbackview-e67ed9ae.md
Occurs when the XPServerModeView requests a Session to retrieve objects from the data store.
Namespace : DevExpress.Xpo
Assembly : DevExpress.Xpo.v25.2.dll
NuGet Package : DevExpress.Xpo
public event EventHandler<ResolveSessionEventArgs> ResolveSession
Public Event ResolveSession As EventHandler(Of ResolveSessionEventArgs)
The ResolveSession event's data class is ResolveSessionEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Session | Specifies the session to be used to load and save persistent objects. |
The following code snippets (auto-collected from DevExpress Examples) contain references to the ResolveSession event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
how-to-bind-wpf-grid-to-data/CS/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.cs#L21
var source = new XPInstantFeedbackView(typeof(Issue), properties, null);
source.ResolveSession += (o, e) => {
e.Session = new Session();
wpf-data-grid-implement-crud-operations/CS/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.cs#L24
var source = new XPInstantFeedbackView(typeof(Issue), properties, null);
source.ResolveSession += (o, e) => {
e.Session = new Session();
};
xpInstantFeedbackView1.ResolveSession += (s, e) => {
e.Session = session;
how-to-bind-wpf-grid-to-data/VB/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.vb#L18
Dim source = New XPInstantFeedbackView(GetType(Issue), properties, Nothing)
AddHandler source.ResolveSession, Sub(o, e) e.Session = New Session()
grid.ItemsSource = source
End Sub
AddHandler xpInstantFeedbackView1.ResolveSession, Sub(s, e)
e.Session = session
See Also