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
michal adamkiewicz
NA
9
8.5k
How to use Lambda in this case?
Jul 22 2014 5:09 AM
Hi,
I have just simply case, in XAML code I have some storyboard
<storyboard>
.....
</storyboard>
I want to change property of one of my control after the storyboard will end, so I want to use completed event of storyboard:
<storyboard completed = "My Method">
....
</storyboard>
private void My Method(object sender, EventArgs e)
{
MyControl.IsOpen = false;
}
It's simply, but I wondering why I need to create some delegate and handling it by My Method just for change property.
If it's possible to do something like this (i don't know how exactly;)):
<storyboard completed = " (() => {MyControl.IsOpen = false}) "
.....
</storyboard>
Reply
Answers (
2
)
language translator In .Net
simple Animation Windows Phone Draw Random Circles on screen