- 0
c# metro fade multiple objects
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 24 replies
- 0 views
-
Metro 2033 Redux giveaway goes live as studio shares update on next AAA projects
By LoneWolfSL,
- 4a games
- metro 2033 redux
- (and 7 more)
- 5 replies
- 0 views
-
Embracer Group will keep Zen Studios and Metro's dev 4A Games instead of selling them off
By John Callaham,
- gaming
- embracer group
- (and 4 more)
- 0 replies
- 3 views
-
Metro: Last Light Redux is free to claim on GOG for the next 48 hours
By LoneWolfSL,
- gog
- gog winter sale
- (and 8 more)
- 10 replies
- 524 views
-
THQ Nordic owner acquires eight more studios, including Metro series maker 4A Games
By LoneWolfSL,
- embracer group
- saber interactive
- (and 11 more)
- 15 replies
- 971 views
-
Question
James Rose
Hello gang,
I am able to make single object fade in and fade out as needed. However, when I attempt the following code it fails on this line: MenuFadeStoryboard.Begin(); It fails with "Unspecified Error" How helpful is that?
Any thoughts?
Storyboard MenuFadeStoryboard = new Storyboard(); DoubleAnimation FadeOutMenus = new DoubleAnimation(); FadeOutMenus.From = 1.0; FadeOutMenus.To = 0.0; FadeOutMenus.Duration = new TimeSpan(0, 0, 0, 1, 600); //TODO: needs to be shorter MenuFadeStoryboard.Children.Add(FadeOutMenus); foreach (BediaNVMenu objBediaMenuUI in BediaMenuItems.Items) { Storyboard.SetTarget(FadeOutMenus, objBediaMenuUI); } Storyboard.SetTargetProperty(FadeOutMenus, "Opacity"); MenuFadeStoryboard.Children.Add(FadeOutMenus); //fails here MenuFadeStoryboard.Begin();Link to comment
https://www.neowin.net/forum/topic/1162326-c-metro-fade-multiple-objects/Share on other sites
4 answers to this question
Recommended Posts