Losing default loading splash with ashx handler in silverlight

Posted by Shrikant_SL under Silverlight on 1/20/2012 | Points: 10 | Views : 1299 | Status : [Member] | Replies : 0

I am setting the SL control's source property to a ashx handler, to avoid caching for the moment.

The handler looks like this:

public void ProcessRequest(HttpContext context)
context.Response.CacheControl = "no-cache";
context.Response.AddHeader("Pragma", "no-cache");
context.Response.AddHeader("P3P", @"CP=""IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT""");
context.Response.Expires = -1;
context.Response.BufferOutput = false;
context.Response.ContentType = "application/x-silverlight-app";

<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:Silverlight ID="Xaml1" runat="server"
MinimumVersion="4.0.50826.0" width="100%" height="100%">

But I am losing default loading Splash screen with this implementation, When I run the application , It show white screen for a moment & then silverlight application comes into picture.

Please help me to solve this if anyone knows about this.



(No response found.)

Login to post response