I'm developing a MVVM app with an RGB selector. I have 3 sliders for each channel and would like to use routed events to catch the ValueChanged
event on each slider
<StackPanel Grid.Row="0" Grid.Column="1" Slider.ValueChanged="DoSmth">
<Slider Value="{Binding R}" Minimum="0" Maximum="255" />
<Slider Value="{Binding G}" Minimum="0" Maximum="255" />
<Slider Value="{Binding B}" Minimum="0" Maximum="255" />
</StackPanel>
Now, this beeing a MVVM app, I'd like to use Commands for this. However I can't see to find a way to send a Command without having to assign it to each slider separately. I read a bit on "Routed Commands" but that didn't give me a solution either.
How can i accomplish this?