현재 프로젝트에서 확장 WPF 툴킷의 DoubleUpDown UserControl을 사용하고 있습니다. 이제 RelayCommand를 DoubleUpDown의 DoubleClick 이벤트에 바인딩해야하지만 작동하지 않습니다. 지금까지 모든 종류의 다른 UserControls 위해 DoubleClick 할당 된 및 일반적으로 잘 작동했다 또는 때로는 CommandBinding, 보유 할 것이라고 빈 UserControl 요소로 래핑했다하지만 지금까지 내가 항상 작동 있어요.WPF-ToolKit의 DoubleUpDown에 대한 MouseDoubleClick-CommandBinding이 작동하지 않습니까?
이것은 내가 지금까지 뭘하려 :
<UserControl Grid.Row="7"
Grid.Column="0">
<xctk:DoubleUpDown Value="{Binding EditableDevice.SelectedLoadReceptor.DecimalPlaces,
UpdateSourceTrigger=PropertyChanged,
Mode=TwoWay, FallbackValue='1'}"
FormatString="F0"
Minimum="0"
Maximum="10">
<xctk:DoubleUpDown.InputBindings>
<MouseBinding Command="{Binding EditDeviceCommand}"
Gesture="LeftDoubleClick" />
</xctk:DoubleUpDown.InputBindings>
<i:Interaction.Triggers>
<i:EventTrigger EventName="LeftDoubleClick">
<cmd:EventToCommand Command="{Binding EditDeviceCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</xctk:DoubleUpDown>
<UserControl.InputBindings>
<MouseBinding Command="{Binding EditDeviceCommand}"
Gesture="LeftDoubleClick" />
</UserControl.InputBindings>
</UserControl>
나는 보통있는 InputBindings을 사용으로 괜찮아 아닌 DoubleUpDown ... 와 나는 문제의 원인이 무엇 궁금합니다. 여기에 누구나 아이디어 나 해결 방법이 있습니까?
감사
랄프