MVVM pattern.
The ItemSource of my DocumentContainer is binded to an ObservableCollection<UserControl>.
When I close a MDI Document in my DocumentContainer I can trigger the "DocumentClosing" event.
What is the parameter I have to use to pass (to the model) the MDI Document i am closing?
<syncfusion:DocumentContainer ItemsSource="{Binding MyMdiDocuments}"
<i:Interaction.Triggers>
<i:EventTrigger EventName="DocumentClosing">
<i:InvokeCommandAction
Command="{Binding Path=ClosingMDICommand}"
CommandParameter="????????" /> <!-- I want to pass the document I'm closing-->
</i:EventTrigger>
</i:Interaction.Triggers>
</syncfusion:DocumentContainer>