複数のコマンドを xamdatapresenter のレコードにバインドする必要があります。
<igDP:FieldLayoutSettings.DataRecordPresenterStyle>
<Style TargetType="{x:Type igDP:DataRecordPresenter}" >
<Setter Property="HeaderAreaBackground" Value="#FF1E1E1E" />
<Setter Property="localCommand:CommandBehaviorCollection.Behaviors">
<Setter.Value>
<localCommand:BehaviorBindingCollection>
<localCommand:BehaviorBinding Event="MouseDoubleClick"
Command="{Binding DataContext.ShowOrderDetailCommand,RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type igDP:XamDataPresenter}}}"
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"/>
<localCommand:BehaviorBinding Event="PreviewMouseUp"
Command="{Binding DataContext.ShowSecurityDetailCommand,RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type igDP:XamDataPresenter}}}"
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"/>
</localCommand:BehaviorBindingCollection>
</Setter.Value>
</Setter>
</Style>
</igDP:FieldLayoutSettings.DataRecordPresenterStyle>
しかし、プロジェクトの実行中にエラーが発生しました:
ArgumentNullException: 値を null にすることはできません。パラメータ名: プロパティ
プロパティlocalCommand:CommandBehaviorCollection.Behaviors
が null であることを確認します。私は何か見落としてますか?誰にもアイデアはありますか?