RightMouseDownEvent は EventToCommand で動作すると予想されますか?
Command を PreviewMouseRightUp と PreviewMouseRightDown にバインドできますが、MouseRightButtonDown は何もしません。間違ったイベント名を使用していますか?それは簡単ですか?
xaml では、両方のイベントが同じハンドラーにバインドされています。1 つだけが機能します (Preview...Up)。それぞれを順番にコメントアウトしますが、プレビューのみが機能します。
考え?ありがとう!
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<cmd:EventToCommand Command="{Binding SetActivePaneCommand}" CommandParameter="{Binding PaneOne}" PassEventArgsToCommand="False" />
<cmd:EventToCommand Command="{Binding ListSelectionChangedCommand}" PassEventArgsToCommand="True" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseRightButtonDown">
<cmd:EventToCommand Command="{Binding PreviewMouseRightButtonUpCommand}" PassEventArgsToCommand="True" />
</i:EventTrigger>
<i:EventTrigger EventName="PreviewMouseRightButtonUp">
<cmd:EventToCommand Command="{Binding PreviewMouseRightButtonUpCommand}" PassEventArgsToCommand="True" />
</i:EventTrigger>
</i:Interaction.Triggers>