We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Silverlight Sample background (v8.x)

Thread ID:





93269 Mar 6,2010 10:02 PM UTC Mar 10,2010 04:38 AM UTC General Discussion 1
Tags: General Discussion
Ruben Edna
Asked On March 6, 2010 10:02 PM UTC

Hi all.

I'm trying to find out in the samples how the background is actually set. I've of course found the following lines in the MainPage.xaml.cs:

ImageBrush brush = new ImageBrush();
brush.ImageSource = new BitmapImage(new Uri("/Syncfusion.SampleBrowserUtils.Silverlight;component/Images/Background.png", UriKind.Relative));
outerborder.Background = brush;

However, it obvious when you run the sample that the background image given above is not the background actually shown. Anyone who understands when and how the actual background is set?

Attachment shows the difference.


C. Sudha [Syncfusion]
Replied On March 10, 2010 04:38 AM UTC

Hi Ruben,

Thanks for choosing syncfusion products.

Yes, The statement you specified for setting the background image is correct. In this statement, we are referring the background.png file from "Syncfusion.SampleBrowserUtils.Silverlight" project.
I suspect that you are seeing the background image in "Syncfusion.Tools.WPF.Samples" project instead of Syncfusion.SampleBrowserUtils.Silverlight.
The background you specified at the top of attached image is from Syncfusion.Tools.WPF.Samples project and background specified at the bottom of attached image is from Syncfusion.SampleBrowserUtils.Silverlight.

Hope this resolves your problem. Let us know if you any other queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon