Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using the command binding using the relay command
But is it possible to pass parameters along with the command binded in the Xaml file
Posted

1 solution

Yes. It is possible.

CSS
<Button
       Command="{Binding Path=myCommand}"
       CommandParameter="myParam"/>
 
Share this answer
 
Comments
arun_pk 30-Jun-11 2:58am    
Thanks Abhinav

for TreeViewItem i am not able to find Command
How shall i Bind a Command for TreeViewItem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900