Click here to Skip to main content
11,803,575 members (74,646 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: .NET3.0 ASP.NET .NET WCF WPF , +
Hi All,

I am new in silverlight 3.0 ,I want to Command Property bind using MVVM Pattern in Silverlight 3.0.

I have found some solution in google as below
a. add in xaml - xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
<Button x:Name="Submit" Content="Submit"    ClickMode="Press" Grid.Row="4" >
               <i:EventTrigger EventName="Click">
                   <i:InvokeCommandAction Command=""
                               CommandParameter="{Binding Click, ElementName=Submit}"/>
               <i:EventTrigger EventName="Click">
                   <ei:CallMethodAction   TargetObject="{Binding}" MethodName="ShowCustomer"/>


<Button x:Name="Submit" Content="Submit" ClickMode="Press" Command="Submit" Grid.Row="4" ></Button>

Above code is also not working. However Command Property is not in Silverlight 3.0

Can you please suggest me so that i can bind Command Property easily in Silverlight 3.0
Posted 1-Oct-12 2:10am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


You should read this : Data and Command Bindings for Silverlight MVVM Applications[^]

Best regards,

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

  Print Answers RSS
0 OriginalGriff 375
1 CPallini 320
2 F-ES Sitecore 270
3 Sergey Alexandrovich Kryukov 234
4 KrunalRohit 226
0 OriginalGriff 3,000
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,755
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 23 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100