Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Interaction.Triggers - Event Not getting fire in View model
posted

Hello,

I have used the xamdatagrid and created some trigger event with the help of interaction Triggers.

I have written its method in view model but Its not working data binding is working proerly for grid but theres some issues in binding trigger. Please find below code snippes .

I have aslo attached the code sample which might be useful to undestand my issues.

 <i:Interaction.Triggers>
                        <i:EventTrigger EventName="CellUpdated"  SourceName="xamDataGrid1">
                            <ei:CallMethodAction   MethodName="{Binding Path= xamDataGridCellUpdated}"
                        TargetObject="{Binding    ElementName=TestViewModel}"/>       
                 
                        </i:EventTrigger>
                        <i:EventTrigger EventName="CellActivating"  SourceName="xamDataGrid1">
                            <ei:CallMethodAction    MethodName="{Binding Path= xamDataGridCellActivating}"
             TargetObject="{Binding    ElementName=TestViewModel}"/>
                        </i:EventTrigger>

 </i:Interaction.Triggers>

Looking forward for your kind relay.

 

Parents Reply Children