Silverlight Trick: Inline Silverlight Apps

About 6 months ago I wrote a little piece about how to create simple animations. It would seem that the thing people liked best about that post was not the animation itself but the way in which I included it inline with text. So here’s a little post on how to create that effect.

Creating this look is incredibly easy. While working on another post here at  Ascentium I built this sample, so now I’ll share it with you. I almost feel silly even explaining this in a post as it’s so simple, but hey, I’ll go for it anyway.

This example is just a hyperlink to Ascentium but has a couple of animations that are beyond what you can accomplish with HTML/CSS.

Silverlight App

Your Silverlight application itself is created just like you would any other and can be as simple or complex as you want. The key thing to remember is that the app needs to be as small as possible. I’ve found that about 12 pixels works great for the height and whatever width fits your purpose.

UserControl

Embedding it inline

This part is also pretty easy if you know HTML at all. All you need to do is to include the object tag within the text that is being displayed. As you can see from the following sample, the height and width are also defined on the object itself.

InlineHtml

Considerations

There are a few things to be aware of when adding Silverlight inline like this, some of which are demonstrated above.

First, no Silverlight. Be sure to include a “downlevel” experience for viewers that do not have Silverlight installed. This can be the standard “Download Silverlight” button if you like but be careful as it will probably not fit in the space allotted. What I chose to do in this case was to just show a text link to the same destination, this way the user has a consistent performance although with a less fancy link.

Second, whitespace. Some browsers, like Internet Explorer, will not honor whitespace before or after the object. The fix for this is simple, and you can see it above as well. What I did was just use a non-breaking space before and after the object. Another solution would be to build the padding into your application itself.

Next, background colors. I built this sample with a white background but sometimes that may not suit your needs. If you need a transparent background you need to set the background to be transparent in both the Silverlight app and in the object params. Further, you also need to set windowlessmode to true in the object params. This can have a negative effect if you are running video but otherwise would be fine.

Also, text scaling. By using this technique to display text inline with HTML, you lose the browsers ability to scale the text for the user. You may be able to create a workaround for this limitation but I’m not going into that at the moment.

Finally, text & link. This sample has the text (Ascentium) and the link destination (www.ascentium.com) both hard-coded into the application. It would also be possible to load one or both of those from initialization parameters set on the object. This would allow you to have a Silverlight app that has a cool effect on it and use it in multiple places.s

#1 Silverlight Girl on 12.04.2008 at 2:57 PM

Terrific use for a Silverlight App! I can't wait to put it into practice. Thank you very much for the thorough explanation.

#2 Silverlight Travel on 12.08.2008 at 1:59 AM

Such a small think. ;-) But such a great idea

#3 ricky on 5.12.2009 at 10:56 PM

Interesting post, this was really useful. thanks!

#4 lissa on 5.25.2009 at 9:55 PM

thanks for sample silverlight App, this was really helpful

#5 Pusat Belanja Online on 6.03.2009 at 5:23 AM

amazing article

#6 mark on 6.17.2009 at 7:00 PM

thanx a lot... this was really useful

#7 Stop Dreaming Start Action on 6.20.2009 at 6:55 PM

I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.

#8 Rusli Zainal Sang Visioner on 6.20.2009 at 6:56 PM

information is truly extraordinary, I am very interested to read this post. thank you

#9 Radiokabel on 6.24.2009 at 6:03 AM

That means you can have your working application, or a video explaining it or maybe just a neat hero bar talking about the virtues of your project.

#10 Travelocity Coupon Code on 6.25.2009 at 3:43 AM

Is this still going on? I completely forgot about trying to put something together.

Regards,

#11 online blackjack on 6.26.2009 at 3:14 AM

It would seem that the thing people liked best about that post was not the animation itself but the way in which I included it inline with text.

#12 Custom Essay on 6.26.2009 at 4:14 AM

Many of these boards distinguished themselves with ANSI art, an early form of electronic cave paintings.Thats good to know about your site and it is really entertaining.

#13 Stubhub Coupon on 6.26.2009 at 9:09 AM

They worked a schedule of four days “in camp” and three days out, traveling between the mine site and the city by plane.

#14 israel education on 6.26.2009 at 9:41 AM

education is my life here

#15 jammer on 6.26.2009 at 9:41 AM

u impressed me alot

#16 moving on 6.26.2009 at 9:41 AM

we should move on

#17 San Francisco Movers on 6.26.2009 at 9:42 AM

is it that funny?

#18 Fireplace Designs on 6.27.2009 at 3:17 AM

The programming stuff really confuses me but it gives the users a good platform to work with. The interest lies in the designs.

#19 games on 6.29.2009 at 5:58 AM

It is good to organize the free and fun games which brings the spirit to play for the viewers.

Regards,

#20 Essay Writing Service on 6.29.2009 at 5:59 AM

That means you can have your working application, or a video explaining it or maybe just a neat hero bar talking about the virtues of your project.

Regards,

#21 Research Paper Help on 6.29.2009 at 6:01 AM

Please, can you PM me and tell me a bit more about this, I am really fan of your blog.

regards,

#22 Custom Essay on 6.30.2009 at 6:40 AM

The coding is informative to know about it and i would like to try once. Thanks for your share.

#23 Buy Essay on 7.01.2009 at 8:19 AM

Thats really good to know and i want to implement it and try in different manner. Thanks for your share.

#24 Essays on 7.01.2009 at 8:21 AM

Thats good and the coding is informative to know about it.

#25 online games on 7.01.2009 at 8:39 AM

That is great recipe you came up with. We are still experimenting and are not really sure how this experiment would end up, specially for Windows.

Regards,

#26 Rusli Zainal Sang Visioner on 7.02.2009 at 12:15 AM

Quite good trick but i want you to make it Better ur post because i use firefox 3.5

very bad css theme

#27 online paid surveys on 7.02.2009 at 2:35 AM

The happening with the laptop there is some hope that hard disk survived, I hope that servive center will fix your laptop.

Regards,

#28 motorbike accident claim on 7.02.2009 at 2:36 AM

The organic points are very good and this will create an idea to react properly in the future with the conditions they meet.

Regards,

#29 club penguin cheats on 7.04.2009 at 3:57 AM

Thank you very much for the thorough explanation. Terrific use for a Silverlight App! I can't wait to put it into practice.

#30 Custom Essay on 7.06.2009 at 1:20 AM

The codings are really helpful and informative as well.And I hope that the survive center will fix your laptop.

#31 Custom Dissertation on 7.06.2009 at 1:23 AM

I wanna implement more things from it. It really a good coding and wanna share more of it.

regards,

#32 paralegal program on 7.06.2009 at 4:44 AM

I and some of my friends went for the fix for this is simple, and you can see it above as well.

Regards,

#33 stop dreaming start action on 7.06.2009 at 9:28 AM

what is siverlight may be you can explain for me

#34 casinos en direct on 7.06.2009 at 3:17 PM

great haha thanks

#35 Pari en ligne on 7.06.2009 at 3:18 PM

amazing article

#36 Custom Dissertation on 7.07.2009 at 3:44 AM

I think it’s a fine idea to ask the community for their input and ideas. Recognition and praise is payment enough, especially if you understand that IT isn’t a company that generates the kind of income to advertise events, let alone hire a designer for a logo.

#37 Thesis Writing on 7.07.2009 at 3:45 AM

Take into consideration factors like where is the clinic sited the costs and even the waiting time in the clinic.

#38 Term Paper on 7.07.2009 at 5:11 AM

The coding you gave is really good and informative.

#39 Research Paper Outline on 7.07.2009 at 5:13 AM

Thats really nice share you has given and i did learn much from it.

#40 Research Paper on 7.07.2009 at 5:14 AM

These are the essays for the persons who need it and being a writer i could understand your information.

#41 phd degree on 7.07.2009 at 6:45 AM

specially if you understand that IT isn’t a company that generates the kind of income to advertise events, let alone hire a designer for a logo.

#42 university diploma on 7.07.2009 at 6:45 AM

where is the clinic sited the costs and even the waiting time in the clinic.

#43 Online High School on 7.07.2009 at 6:45 AM

the persons who need it and being a writer i could understand your information.

#44 Master Degree on 7.07.2009 at 6:46 AM

the fix for this is simple, and you can see it above as well.

#45 Online degree on 7.07.2009 at 6:48 AM

interesting blog

#46 kit tatuaggi on 7.09.2009 at 4:06 AM

I suspect that I may be like many consumers, willing to try to do the right thing but easily deterred if the barriors to doing so are too high.

Regards,

#47 Business Opportunity Now on 7.10.2009 at 9:31 AM

I'm impressed, great use of the Silverlight App. ANything with good code examples is always welcome! Thanks.

#48 surf anonymously on 7.11.2009 at 4:15 AM

Its amazing that is very useful in now a days to use silver line application

#49 surf anonymously on 7.11.2009 at 4:20 AM

Its amazing that it very help full to us in now a days that silver light app. will give cool light thanks for nice post

#50 Rusli Zainal Sang Visioner on 7.12.2009 at 1:39 AM

nICE CODE BUT your codebox is outline

#51 Essay on 7.13.2009 at 1:11 AM

The animation that i was seen is looking good where silver line apps are looking good

#52 Free Online Yoga on 7.13.2009 at 9:22 AM

Nice work..Thanks a killer for sharing this out..

#53 concert tickets on 7.14.2009 at 1:48 AM

It is an amazing work out. i could understand your information well.

#54 tiffany jewellery on 7.14.2009 at 4:19 AM

Large of discounted tiffany jewelry are provided in our tiffany store. From our tiffany jewellry Store, the newest release, latest style and highest quality

#55 Thesis on 7.14.2009 at 5:21 AM

I had a great time visiting your site and i feel happy to know about this sort of information

#56 Free Government Grants on 7.14.2009 at 1:47 PM

I think silverlight apps are the best.

#57 Essay on 7.15.2009 at 3:59 AM

I did like this very much thank you

#58 Cute rain boots on 7.16.2009 at 4:22 AM

Very good and informative. Thank you!!

#59 Custom Term Paper on 7.16.2009 at 7:31 AM

these are very simple steps to follow.I built this sample, so now I’ll share it with you. I almost feel silly even explaining this in a post as it’s so simple.

#60 bankruptcy chapter 13 jacksonville attorney on 7.16.2009 at 10:34 AM

To create an effect of including animations inline with text, has always been a challenge to achieve. And to do it without using HTML or CSS, is even more complicated. Thanks to the author of this post for his useful advice on the same.

#61 Sonic Game on 7.24.2009 at 6:56 AM

These are good objectives provided.This is probably the most common one I use as it allows for a fairly natural feel when animating scenes sliding into view.Thanks for sharing

#62 George Foreman outdoor grill on 7.25.2009 at 5:02 PM

Thx for the mini tutorial, I'll try to find another one to get all the details.

#63 sale handbags on 7.25.2009 at 11:59 PM

Good topic. Very interesting Posting. Thank for your share. Nice!!

#64 جيل on 7.27.2009 at 12:42 AM

thanks

http://www.jeel5.com/vb

#65 Diploma owner on 7.27.2009 at 1:23 PM

thanks

#66 Earn Money Online on 7.28.2009 at 10:23 PM

This is really some awesome advice. Keep it up, my colleagues would love this.

#67 Plastic Surgery Doctors on 7.29.2009 at 10:13 PM

the Silverlight application is a great application for creating great websites.

#68 Blog commenting service on 7.31.2009 at 1:07 PM

There are lots of clip arts available in the web and i need to see the difference with these available here.

#69 stop dreaming start action on 8.03.2009 at 6:29 AM

nice tips, i like it. thank you

#70 stop dreaming start action on 8.03.2009 at 6:29 AM

thank you for your tips

#71 بيتك هنا on 8.03.2009 at 11:19 AM

thank you for screenshoot, that useful for understanding it

#72 sea of spa black pearl on 8.04.2009 at 4:07 PM

Thanks for this nice tutorial.

#73 Holo on 8.06.2009 at 2:30 AM

wise guy! Thx for your SL tricks

#74 Rusli Zainal Sang Visioner on 8.06.2009 at 11:37 PM

very usefull for us...thank you blog.cicurug.com/.../stop-dreaming-s

#75 hot videos on 8.07.2009 at 2:19 AM

good suff. bro.. cool tips.thanks for your share

#76 side effects on 8.07.2009 at 10:27 PM

Thanks for sharing this information. I found it very informative as I have been researching a lot lately on practical matters such as you talk about...

#77 testking a+ on 8.08.2009 at 2:28 PM

One challenge has been finding a "start small" approach to providing the benefits of streaming the video content vs. downloading from document libraries without the need to provision large media servers and associate infrastructure in the short-term. Another challenge as been finding an approach to surface our rich user experiences developed on Silverlight on our internet-facing site as well as our intranet/extranet environment.

To address these efforts we recently customized a standard SharePoint blog template using SharePoint Designer to display both streaming video content and Silverlight 2 applications we currently have stored on the Silverlight Streaming Service.

#78 Web Design Dubai on 8.09.2009 at 3:13 AM

Amazing use of silverlight application. Great tutorial thank you !

#79 wisata seo sadau on 8.09.2009 at 9:54 AM

thanks for posting..

#80 links of london on 8.09.2009 at 10:03 PM

It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader.

Thanks again.

#81 Home Theater Seating on 8.10.2009 at 5:57 AM

Silverlight become famous now a days, SilverLight become one of the hot topic nice post on silver light.

#82 purchase sildenafil citrate on 8.10.2009 at 9:45 AM

Ok, now anybody can tell me whre I can purchase Silverlight?

#83 Testing on 8.14.2009 at 5:27 AM

Good work . Thanks for sharing .

--

Jeff

( <a href="http://www.johnadams-edu.us" title="High School Diploma online">High School Diploma online</a> | <a href="http://www.excelhighschool.com" title="online high school">online high school</a> | <a href="http://www.mydivorceplan.com" title="Divorce">Divorce</a> | <a href="http://www.zframez.com" title="Protocol testing training">Protocol testing training</a> )

#84 Online high school on 8.14.2009 at 5:31 AM

Nice article . Keep posting .

#85 GED Online on 8.14.2009 at 5:32 AM

Good effort .

#86 Divorce Advice on 8.14.2009 at 5:34 AM

Very useful info . Thanks for sharing .

#87 links o f london on 8.15.2009 at 4:44 AM

links o f london links o f london links o f london

#88 توبيكات on 8.15.2009 at 10:12 PM

where is the clinic sited the costs and even the waiting time in the clinic.

#89 Free Advertising on 8.16.2009 at 12:52 AM

The coding you gave is really good and informative.Thanks for sharing .

#90 Tiffany on 8.16.2009 at 8:47 PM

OH yeah,That's great

#91 Internet Marketing Melbourne on 8.16.2009 at 9:22 PM

Excellent info on silverlight coding.

thanks

#92 kitchen renovation Melbourne on 8.16.2009 at 9:23 PM

Excellent.

thanks for sharing

#93 Sports Flooring on 8.16.2009 at 9:23 PM

Love Silverlight App! Thank you very much for the great explanation.

#94 Tiffany Jewellery on 8.16.2009 at 9:26 PM

OH yeah,That's great

#95 Tiffany Jewellery on 8.16.2009 at 9:31 PM

Thanks for sharing .

#96 Tiffanys on 8.16.2009 at 9:32 PM

YOU KNOW

#97 Tiffany Co on 8.16.2009 at 9:32 PM

It's wonderful

#98 Tiffanys on 8.16.2009 at 9:33 PM

SURE

#99 Tiffanys on 8.16.2009 at 9:35 PM

GOOD

#100 Tiffany Pendants on 8.16.2009 at 9:37 PM

HoHo ,I find

#101 Tiffany Necklaces on 8.16.2009 at 9:37 PM

If it's ture,So good

#102 Tiffany Sets on 8.16.2009 at 9:38 PM

god like

#103 Tiffany Bracelets on 8.16.2009 at 9:38 PM

HAHHAHA,SO HAPPY

#104 Tiffany Rings on 8.16.2009 at 9:39 PM

(#‵′)凸

#105 Tiffany Earrings on 8.16.2009 at 9:40 PM

╭∩╮(︶︿︶)╭∩╮

#106 Tiffany Bangles on 8.16.2009 at 9:44 PM

O(∩_∩)O~

#107 Tiffany Jewelry on 8.16.2009 at 9:45 PM

-_-#!!!!

#108 Tiffany Jewelry on 8.16.2009 at 9:47 PM

O(∩_∩)O哈哈~

#109 Tiffany necklaces on 8.16.2009 at 9:52 PM

╭(╯^╰)╮

#110 Tiffany pendants on 8.16.2009 at 9:54 PM

╮(╯_╰)╭

#111 Tiffany bracelets on 8.16.2009 at 9:54 PM

O(∩_∩)O~

#112 Tiffany Bracelets on 8.16.2009 at 9:55 PM

OH yeah.I like it

#113 Tiffany on 8.16.2009 at 9:55 PM

Can you help me?

#114 Tiffany Jewelry on 8.16.2009 at 9:55 PM

I want to know more.

#115 Tiffany Necklaces on 8.16.2009 at 9:56 PM

HOHOHO(╰_╯)#

#116 Tiffany Pendants on 8.16.2009 at 9:57 PM

Thanks your post,I hope you have a good luck

#117 Ed Hardy on 8.16.2009 at 10:02 PM

~\(≧▽≦)/~

#118 Christian Audigier on 8.16.2009 at 10:03 PM

( ⊙ o ⊙ )!

#119 Ed Hardy clothing on 8.16.2009 at 10:03 PM

\(^o^)/同意

#120 Ed Hardy shirts on 8.16.2009 at 10:04 PM

╮(╯_╰)╭

#121 Links of London on 8.16.2009 at 10:05 PM

Just so so

#122 Ed Hardy clothing on 8.16.2009 at 10:05 PM

If you want to buy ed hardy

#123 Links London on 8.16.2009 at 10:06 PM

Links of london on sale

#124 Links of London charms on 8.16.2009 at 10:07 PM

~~(╯﹏╰)b

#125 Links of London Jewellery on 8.16.2009 at 10:07 PM

%>_<%

#126 Links of London charms on 8.16.2009 at 10:08 PM

LOOK THIS ,( ‵o′)凸

#127 Links of London bracelets on 8.16.2009 at 10:08 PM

I like links of london

#128 Links London on 8.16.2009 at 10:09 PM

╭(╯3╰)╮

#129 Links of London on 8.16.2009 at 10:09 PM

(⊙_⊙)

#130 Links of London bracelets on 8.16.2009 at 10:10 PM

hoho

#131 Links of London charms on 8.16.2009 at 10:12 PM

(>^ω^<)喵

#132 Abercrombie and Fitch on 8.16.2009 at 10:15 PM

Abercrombie &amp; Fitch Mens, Hollister, Ruehl No.925, Outlet On Sale, Free Shipping Worldwide.

#133 Abercrombie on 8.16.2009 at 10:16 PM

Abercrombie &amp; Fitch Mens, Hollister, Ruehl No.925, Outlet On Sale, Free Shipping Worldwide.

#134 Hollister on 8.16.2009 at 10:17 PM

I can't understand.

#135 Abercrombie on 8.16.2009 at 10:17 PM

Abercrombie &amp; Fitch Mens, Hollister, Ruehl No.925, Outlet On Sale, Free Shipping Worldwide.

#136 Hollister clothing on 8.16.2009 at 10:18 PM

I like it ,please write more

#137 Ruehl on 8.16.2009 at 10:20 PM

What's means

#138 فحص البيج رانك on 8.19.2009 at 10:53 PM

thakns

#139 منتديات on 8.19.2009 at 10:53 PM

thanks

#140 دليل مواقع on 8.19.2009 at 10:54 PM

thasnks

#141 Alt Desire on 8.21.2009 at 10:22 AM

Great job!

#142 Lord of the Rings on 8.21.2009 at 10:24 AM

It's always interesting to read your articles.

#143 acne removal on 8.23.2009 at 10:20 AM

nice post. thanks for sharing.

#144 Emo Boys on 8.23.2009 at 3:22 PM

It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader.

#145 العاب on 8.23.2009 at 6:29 PM

good

#146 توبيكات on 8.23.2009 at 6:29 PM

good

#147 خلفيات on 8.23.2009 at 6:30 PM

good

#148 Debt Advice on 8.24.2009 at 9:21 AM

How true! THanks!

#149 Mister on 8.24.2009 at 7:09 PM

Thanks for the tips. They're really helpful.

#150 juicy couture charm on 8.25.2009 at 6:02 AM

dgdfg

#151 juicy jewelry on 8.25.2009 at 6:02 AM

thanksd

#152 juicy couture jewelry on 8.25.2009 at 6:02 AM

thanks

#153 stop dreaming start action on 8.25.2009 at 5:12 PM

This is very useful information. thanks for sharing.

#154 Tiffany Co on 8.25.2009 at 9:09 PM

╭∩╮(︶︿︶)╭∩╮鄙视你!

#155 Tiffany Sets on 8.25.2009 at 9:10 PM

%>_<%

#156 Tiffany Bangles&Bracelets on 8.25.2009 at 9:10 PM

{{{(>_<)}}}

#157 Tiffanys on 8.25.2009 at 9:10 PM

O(∩_∩)O哈哈~

#158 Tiffany Earrings on 8.25.2009 at 9:11 PM

(╰_╯)#

#159 Tiffany Necklaces on 8.25.2009 at 9:11 PM

o(︶︿︶)o唉

#160 Tiffany Rings on 8.25.2009 at 9:11 PM

哼(ˉ(∞)ˉ)唧

#161 Tiffany Earrings on 8.25.2009 at 9:11 PM

(╰_╯)#

#162 Tiffany Accessories on 8.25.2009 at 9:12 PM

(*@ο@*) 哇~

#163 Tiffany Pendants on 8.25.2009 at 9:12 PM

~\(≧▽≦)/~啦啦啦

#164 Tiffany Charms on 8.25.2009 at 9:13 PM

╮(╯▽╰)╭

#165 links of london on 8.25.2009 at 10:53 PM

Thanks for your information!