BingWallpaper
The BingWallpaper extender component enhances the Desktop control by adding Bing’s daily stunning wallpaper images. You can set the rotation interval, fade duration and number of images.
-6af6546d78fa2f372500f34e66240cbe.png)
Code Example
BingWallpaper bingWallpaper1 = new BingWallpaper();
bingWallpaper1.Control = panel1;
bingWallpaper1.RotationInterval = 5000;
bingWallpaper1.FadeTime = 1000;
bingWallpaper1.MaxImages = 5;
This creates a new BingWallpaper and sets up the properties. Note that the Control property is set to panel1, where panel1 is a Wisej.NET Panel. BingWallpaper needs a Control to be set in order to show up on the page- you cannot simply drop it it in the designer and see it. RotationInterval is set to 5000, so the image will rotate every 5 seconds. FadeTime is set to 1000, so the images will fade in/out in 1 second. MaxImages is set to 5 so there will be only 5 images shown and then the images will repeat.
How to Use
The BingWallpaper extension can be added to a Wisej.NET project using NuGet Package Manager.
Animations can be switched on/off with EnableAnimation and controlled with FadeTime.