Mustafa E.
Mustafa E.

Reputation: 439

How to set a lockscreen wallpaper in WP7 application?

I want to set lockscreen wallpaper in my WP7 application.

I tried this code , but it's not I want :

BitmapImage bMap = new BitmapImage(new Uri(tab[0], UriKind.RelativeOrAbsolute));
var imageBrush = new ImageBrush();
imageBrush.ImageSource = bMap;
app.RootFrame.Background = imageBrush;

I don't find anything on the internet, can you help me please ?

(Sorry for my english)

Upvotes: 2

Views: 552

Answers (1)

Richard Szalay
Richard Szalay

Reputation: 84804

What you are describing is not possible in the current SDK. Setting the background of the root frame will only affect your application, not the home screen or lock screen of the phone.

Upvotes: 2

Related Questions