Commanding with multiple parameters

Feb 3, 2010 at 6:07 PM


I would like a way of sending multiple parameters when commanding, I have a command setup as follows:


<Button Grid.Column="3" x:Name="gwConnectionBarButton"
                        Content="{Binding ButtonContent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                        commands:Click.Command="{Binding ConnectionBarClickCommand}"
                        commands:Click.CommandParameter="{Binding ElementName=gwConnectionBarButton,Path=Content}" 
                        Click="gwConnectionBarButton_Click" />

which is sending in the Button content, this is useful to me but what I really want to receive is the value of 3 text boxes that exists within the same View as this button, what woudl be the best way to go about this?

Many thanks, Mark


Feb 3, 2010 at 6:53 PM

Please ignore this, although i'm sure there will be cases when this may be of use to me its not right now.

Afetr a quick read of I realised I could achieve the same results with some binding between the TextBox's and my ViewModel.


Many Thanks, Mark