I'm using mvvm light with wpf.
Currently i can pass string parameter to viewmodel's command like below:
<TextBox Height="23" TextWrapping="Wrap" Text="TextBox" Name="textbox1"/>
<Button Command="{Binding ShowMessage}" Content="Click Me"
CommandParameter="{Binding ElementName=textbox1, Path=Text}" />
My question is how to pass composite type like Person to a command of ViewModel?
Thanks