# BingWallpaper

The BingWallpaper extender component enhances the Desktop control by adding Bing’s daily stunning [wallpaper images](https://www.bing.com). You can set the rotation interval, fade duration and number of images.

![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MjKhTIqf-fGrpjCQzbC%2F-MjKjjEAZyH2GQWrCh0j%2Fimage.png?alt=media\&token=6b09f7a7-aa01-47cf-bbe3-70d4d8db1de9)

{% embed url="<https://github.com/iceteagroup/wisej-extensions/tree/master/Wisej.Web.Ext.BingWallpaper>" %}
Bing Wallpaper Source Code
{% endembed %}

## Code Example

```csharp
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.

{% embed url="<https://www.nuget.org/packages/Wisej-3-BingWallpaper>" %}

Animations can be switched on/off with *EnableAnimation* and controlled with *FadeTime.*<br>

{% hint style="info" %}
Find more information in our BingWallpaper example in [C#](https://github.com/iceteagroup/wisej-examples/tree/2.2/BingWallpaper) or in [VB.NET](https://github.com/iceteagroup/wisej-examples-vb/tree/main/BingWallpaper).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/extensions/extensions/bingwallpaper.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
