Thank you for your reply.
Sorry, I may not have been clear enough.
I'm working in a MVVM pattern.
I have a syncfusion DocumentContainer with the ItemSource property binded in the ViewModel to an ObservableCollection<UserControl> that I called MyMdiDocuments.
My MDI children are of type UserControl that I load at runtime adding them at MyMdiDocuments ObservableCollection.
The file header of these MDI children is like this:
<UserControl x:Class="HI_Mdi.UserControls.MyMDIForm"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:HI_Mdi.UserControls"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:intr="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Platform"
xmlns:localvm="clr-namespace:HI_Mdi.ViewModel"
mc:Ignorable="d"
syncfusion:DocumentContainer.Header="MyMDIForm"
syncfusion:DocumentContainer.MDIBounds="10,10,450,280"
xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase"
Height="auto" Width="auto" d:DesignWidth="600" d:DesignHeight="300" >
I would like to set a trigger to the "state changed" of the MDI documents.
Something like:
<intr:Interaction.Triggers>
<intr:EventTrigger EventName="StateChangedOrWhateverElseEventName">
<intr:InvokeCommandAction Command="{Binding MyStateChangedCommand}" />
</intr:EventTrigger>
</intr:Interaction.Triggers>
Is it possible?