1. Write Xaml as follows
<Button Command="{Binding SearchCommand}" Content="Search"
Height="20" HorizontalAlignment="Right"
Margin="0,16,19,0" TabIndex="14" VerticalAlignment="Top"
Width="75" Grid.Column="2" />
2. Write in viewModel as follows
//This is command against when search button will be pressed
public RelayCommand SearchCommand
{
get
{
//GetDatais a method for your action on click event
return new RelayCommand(GetData);
}
}
3. You Method for for on button click
protected void GetData()
{
//Your work
//
//
}
but in silverlight button click event, the attribute name "Command" was not present.. How to overcome that and i need to bind the selected value record in the Datagrid in Silverlight MVVM..
ReplyDeleteAny help from ur side please.
You can user observeable collection for that purpose to bind the data with grid in silverlight
ReplyDeleteAwesome post.
ReplyDeleteHere is my page ... books of ra online spielen
Hmm is anyone else having problems with the pictures on this
ReplyDeleteblog loading? I'm trying to determine if its a problem on my end or if it's the blog.
Any suggestions would be greatly appreciated.
My blog post - book of ra kostenlos spielen ohne anmeldung
I used to be able to find good info from your content.
ReplyDeletemy site - book of raw kostenlos spielen
This does not work for MvvmLight,the RelayCommand is different than that in MS Mvvm.
ReplyDeleteHello! Someone in my Facebook group shared this website with us, so I came to give it a look. I’m enjoying the information. I’m bookmarking and will be tweeting this to my followers! Wonderful blog and amazing design and style.
ReplyDeletepython training Course in chennai
python training in Bangalore
Python training institute in bangalore
I Regreat For Sharing The information The InFormation shared Is Very Valuable Please Keep Updating Us Time Just Went On Reading The Article Python Online Training AWS Online Training Hadoop Online Training Data Science Online Training
ReplyDeleteWow ! what an interesting blog.Thanks for sharing your informative post on development.Your work is very good and I appreciate you and hoping for some more informational posts.keep writing and sharing.
ReplyDeleteSalesforce Training in Chennai
Salesforce Online Training in Chennai
Salesforce Training in Bangalore
Salesforce Training in Hyderabad
Salesforce training in ameerpet
Salesforce Training in Pune
Salesforce Online Training
Salesforce Training
I appreciate you sharing this content.
ReplyDeleteangular js online institute in Hyderabad