Click here to Skip to main content
13,092,725 members (66,862 online)
Rate this:
Please Sign up or sign in to vote.
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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 23 Oct 2012
Copyright © CodeProject, 1999-2017
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