TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
chetan tembhre
NA
14
0
How to Command Property Bind in Silverlight 3.0 using MVVM Pattern
Oct 1 2012 8:30 AM
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
1.
a. add in xaml - xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
b.
<Button x:Name="Submit" Content="Submit" ClickMode="Press" Grid.Row="4" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<i:InvokeCommandAction CommandName="Submit"
CommandParameter="{Binding SubmitCommand, ElementName=Submit}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
<!--</i:KeyTriggerFiredOn>
<i:EventTrigger EventName="Click">
<ei:CallMethodAction TargetObject="{Binding}" MethodName="ShowCustomer"/>
</i:EventTrigger>
</i:Interaction.Triggers>-->
</Button>
2
.
<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
Reply
Answers (
0
)
How can I add an account in Windows Store apps?
Audio file in Windows Store apps?