我有一个带有选择更改事件的列表框,但是当我选择某个项目时,它会触发两次,这是我的代码:
windows service
其中:
<ListBox SelectedValue="{Binding CleanedSelected}" ItemsSource="{Binding ScanedDiskList}" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<cmd:EventToCommand Command="{Binding SelectionChangedCleaned_Command, Mode=OneWay}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</ListBox>