In my WPF application, I have a slider that controls the opacity of a video. I would also like to be able to click a button and the video gradually fades up over a set period (maybe 1 second?).
I know how to control a video’s opacity, but the bit I’m struggling with is the fade. I imagine I would need some sort of thing where it increases the opacity slightly, then waits a tiny amount of time then increases it again, until opacity equals one? But I’m not sure how to implement this, code-wise?
Could you help?
Thanks!
You could animate the MediaElement’s Opacity property: