If the SL app is inside an updatepanel I don't think you will ever win.

You could try pagemethods instead of updatepanels perhaps, assuming
the legacy permits.

I just tried it out for fun.  I have two divs, one with a SL app and
one with a html button.

On clicking the button I hid the SL div, called the page method, and
on the page method callback showed the SL div and updated a label in
the html div with the time from the server.  The SL app definitely
didn't reload, as I had a timestamp showing in the xaml side of things
that didn't change.


On Thu, Apr 15, 2010 at 1:06 PM, Jordan Knight
<jordan.kni...@readify.net> wrote:
> Having it outside was an option i've considered... the problem is that the
> UI is quite complex with fold out bits etc... so having it float would
> probably make it look a bit funny.
>
> JAK
> ________________________________
> From: ozsilverlight-boun...@ozsilverlight.com
> [ozsilverlight-boun...@ozsilverlight.com] On Behalf Of John OBrien
> [j...@soulsolutions.com.au]
> Sent: Thursday, 15 April 2010 12:00 PM
> To: 'ozSilverlight'
> Subject: RE: Move Silverlight Element around in HTML
>
> We talking updatepanels Jordan? You need to make sure you’re SL controls are
> not within the updatepanel or they are redrawn.
>
> The trick we used for the Bing Maps ASP.NET control was to have the update
> panel just contain some divs used for communication while the large map
> control sat just outside. This was all encapsulated within the control, the
> developer didn’t add their own updatepanel.
>
>
>
> John.
>
>
>
> From: ozsilverlight-boun...@ozsilverlight.com
> [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Jordan Knight
> Sent: Thursday, 15 April 2010 11:36 AM
> To: ozSilverlight
> Subject: Move Silverlight Element around in HTML
>
>
>
> Hey guys,
>
>
>
> I have a situation where an existing ASP.NET AJAX based app has a series of
> SL controls in them. Basically they don't want the SL elements to reload
> when the ajax controls refresh.
>
>
>
> I've had a muck around with moving the element in JS, and it can be moved no
> problem - but it re-initialises the control each time... pretty sure its the
> browser doing it.
>
>
>
> Does anyone have any ideas on how I might move an SL control without it
> re-initialising?
>
>
>
> Cheers!
>
> Jordan.
>
> _______________________________________________
> ozsilverlight mailing list
> ozsilverlight@ozsilverlight.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>
>
_______________________________________________
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to