XamDataGrid 如何在字段中添加鼠标右键单击操作? (基础设施)

XamDataGrid how to add right mouse click action in field? (Infragistics)

我正在使用 InfragisticsXamDataGrid,我想将 TextBoxPreviewMouseRightButtonDown 添加到 XamDataGrid场.

我想在单元格上单击鼠标右键时打开文件对话框并在其中保存相关 URL。

这是我的XAML

<igDP:XamDataGrid RenderTransformOrigin="0.146,-3.629" DataSource="{Binding Path=Wavelets}" GroupByAreaLocation="None">
    <igDP:XamDataGrid.FieldLayoutSettings>
        <igDP:FieldLayoutSettings AutoGenerateFields="False"
                                  AutoFitMode="Always" 
                                  AddNewRecordLocation="OnTopFixed"
                                  AllowAddNew="True" />
    </igDP:XamDataGrid.FieldLayoutSettings>
    <igDP:XamDataGrid.FieldLayouts>
        <igDP:FieldLayout>
            <igDP:FieldLayout.Fields>
                <igDP:Field  Name="AngleFile" Label="Anglestack file"/>
                <igDP:Field Name="WaveletFile" Label="Wavelet file "/>
                <igDP:Field Name="DataField" Label="Data file"/>                       
            </igDP:FieldLayout.Fields>
        </igDP:FieldLayout>
    </igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>

Field 替换为 TemplateField 并按照 official documentation.

中的建议将 EditTemplate 定义为 TextBox