Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: .NET3.0 ASP.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 3: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 Maciej Los 495
1 Sergey Alexandrovich Kryukov 479
2 OriginalGriff 360
3 CHill60 280
4 CPallini 250
0 Sergey Alexandrovich Kryukov 10,017
1 OriginalGriff 9,495
2 Peter Leow 5,241
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 3,076

Advertise | Privacy | Mobile
Web01 | 2.8.150327.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