Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC - Sandbox (Chit Chat) > Tablet PC Bloggers

Tablet PC Bloggers Read Loren, Lora, and Layne's Blogs about Tablet PCs, UMPCs, and more.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-07-2007, 01:00 AM
Administrator
 
Join Date: May 2004
Posts: 1,140
Loren is on a distinguished road
Post Supporting multiple instances of generated Silverlight content

Over the weekend I've been experimenting with a version of InkPlayer written with Silverlight.
Originally I wrote InkPlayer as a C++ app that generated Flash SWF files which showed animated ink drawings. I could fairly easily embed these Flash animations (one or more instances) within a blog post. I'd like to do something similar with Silverlight.
Currently in Silverlight I have a page that I can use to draw something. The app then displays the code I need to place in a blog post in order to play back the ink drawn. I'm able to create an instance of the playback code in Silverlight as linked to above.
That's not too hard to do, although placing a Silverlight app in a blog post requires a script block, which not all blog services allow. Likewise, you have to upload a series of files which is kind of messy. It looks like it's possible to use Microsoft's new Silverlight hosting service to simplify the app packaging, however, I haven't gotten any further than signing up for an account yet. If you're interested, Tim Heuer has some instructions on how to use the new service to host your Silverlight app.
The part I'm still trying to figure out is how to host multiple instances of the same Silverlight app, or similarly generated ones, in the same post or html page. Minimally duplicate IDs, variable names, and the like need to be avoided, however, is it even practical what I want to do?
I began to wonder if the Silverlight hosting service helps to solve some of these issues or if it introduces some other concerns. As a simple test I tried to take Tim Heuer's "Click" example and call duplicates of it in a page, however, I couldn't even get one instance to work, so I tried a sample from Bryant. Unfortunately I'm getting a run-time error in his app. I tried hosting two instances of it anyway in a page and sure enough they conflict. I tried making IDs and so forth unique, but that doesn't seem to get multiple instances working in a single page. I'll probably need to create my own simple hosted Silverlight code to see what special techniques I need, if any, for hosting multiple instances of a Silverlight app.
I also need to go back and find out if Silverlight really needs a parent element name as well as a unique name for each instance when it's used. Ideally embedding Silverlight content should be no more challenging than embedding let's say a YouTube video.


Incremental Blogger
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-07-2007, 01:00 AM
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
iexplorer 6 multiple instances Doug W. Internet Explorer 7 06-03-2008 08:50 AM
Multiple instances of iexplore,exe Doug W. Internet Explorer 6 05-19-2008 11:50 AM
Multiple instances in task bar Don Culp Windows XP 5 05-06-2008 06:00 AM
Multiple Instances of Onenote Roland Microsoft OneNote 2 05-23-2007 05:20 PM
split screens in onenote supporting multiple pages simultaneously crane Microsoft OneNote 3 02-13-2007 10:08 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 02:56 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0