Get Microsoft Silverlight

Sunday, November 30, 2008

Interactive Silverlight Greeting Card

For the last couple of days I was trying to make an animated e-card using Silverlight. So here is the final result. The speciality of this card is that when we move the mouse over the card we can see it as if it is a 3D object and get the perspective view of the objects(Papervision 3D?). All the Trees and Mountains are Path objects and the particles falling down are random sized ellipses. I have used Microsoft Expression Blend to do most of this work

The important part of this Silverlight appplication is a Custom Panel called SpacialArrangePanel. This panel will arrange its children based on two Attached Dependancy Properties.
1) HangingPoint - A point determines its X and Y position in the space
2) ZDistance - A double value determines how far the object is in the Z-plane.

There is another DependancyProperty in the Panel called CameraPoint, which has been hooked to the Mouse Move points so that the mouse pointer acts as an Eye/Camera view point of the Panel.

I have added the InitParams query string in the HTML so that this card can be customized to use special Message and Name on it. Just change the Greeting and YourName parameters in the bellow HTML.

 <div id="silverlightControlHost">

        <object data="data:application/x-silverlight,"

            type="application/x-silverlight-2" style="width: 840px; height: 353px">

            <param name="source" value=""/>

            <param name="InitParams" value="Greeting=Merry Christmas,YourName=Jobi Joy"/>           

            <param name="minRuntimeVersion" value="2.0.31005.0" />

            <param name="autoUpgrade" value="true" />

            <a href="" style="text-decoration: none;">

                <img src="" alt="Get Microsoft Silverlight" style="border-style: none"/>




And here is the Source code


Sameer C. Thiruthikad said...

That's cool Jobi. That 3D feeling is great!

mkoswell said...

Thanks ever so much, very useful article. If you do not mind, please visit my article related to travel to Pandeglang district in Banten, Indonesia at Kenali dan Kunjungi Objek Wisata di Pandeglang

Best regards

jepun131 said...

That's really cool job mate - Kenali dan Kunjungi Objek Wisata di Pandeglang - Travel Guide

Anonymous said...

Nice story . It's kind of funny and entertaining.Thank you for  sharing. the best place kenali dan kunjungi objek wisata di pandeglang to your vacation, i promise that's

morat said...

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.

Kenali dan Kunjungi Objek Wisata di Pandeglang | Blog SEO | cah bagoes | oes tsetnoc | blogger

Anonymous said...

I don’t know If I said it already, but this so good stuff keep up the good work. I read a lot of blogs on a daily basis and for the most part Belajar seo blogspot just wanted to make a quick comment to say I’m glad I found your blog. Thanks.

Best regards
Seo Motivation Oes tsetnoc

Arya Wiradana said...

thanks my dear.. this is great article for me. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading.

Bali car rental

Unknown said...

thanks for shared..
Free Cell Phone | Tech Gadget Review

Anonymous said...

The cold winter, does not seem too for wedding. Most recently, the cold one after another, hangzhou air temperature pelter, let many wedding in late November bride is due a single wear gauze or dress, will feel cold, wear too much and feel very bloated. For the bride, the winter is the biggest test how wedding in temperature and balance between poise.

Don't be too upset, actually this season only fees cheap Wedding Dresses, marriage can create a different character "winter wedding", also more memorable.

You can use the glittering and translucent white fairy tale, cheap cell phones
,the artistic conception to dress up oneself's wedding, choose blue, green, white ice cold tonal, decorous atmosphere to create beautiful, Can borrow snow machine and bubble machine build indoor romantic atmosphere, snowflake, feathers, Christmas tree,cheap cocktail dresses, even is the element such as silver crystal, can add to your winter wedding dreamy colour, cheap jewelryyou can even in a pile of snowman YingBinChu lovely, guests, we must take it and will soon be well.

Anothre set of ralph lauren polo in three colors. Ralph Lauren Polo Shirts come with a graduation of colors on the chest. The new shiki Cheap polo shirts logo is on the chest. Comes in all layres and can be worned tucked in or out Wholesale Polo Shirts -50% OFF.
Also comes with sculpted collar and arm cuffs.Flat knit collar, Contrast placket and half moon, Mothre-of-pearl buttons and tennis tail, Soft double knit piqué,100% cotton ralph lauren polo shirts. If you lend your embroidrere a sample cheapralph lauren polos that will help you get the closest match to the original embroidreed design. The artwork you provide will sreve as a template for your embroidrey set-up but discount ralph lauren polos can't be used to identify some stitch types, cheap polo shirts Cheap Polo Shirtsgive precise sizing of embroidreed elements and show thread polo clothing colors.
Wholesale Polo Shirts
Ralph Lauren Polo Shirts
Discount Ralph Lauren Polos

Anonymous said...

On New Year's hottest r306c SONY Ericssoncheap cell phones

, r306 first win in shape, give a person the feeling of professional and heavy. Its

design clamshell has hidden qualities. Although the low-end market positioning, introduction, SONY

Ericsson R series launched two must let those radio enthusiasts. And there are cheap ones, let the

public mobile phonewholesale of delight

The word "shanzhai" is very popular in China. It is industry phenomenon of imitation, high quality

and low price. Moreover, cell phones are the

representative of them.The global financial crisis led to a significant shri10:25 2009-12-26 nkage

of assets for people. "china wholesale" demonstrate the

might. most of them would like buy the cheap cell phonesnow .

Through google search engine, when you put in "discount cell
phones", you will find more than 15,000 pieces of related information.Cell phone china has been concerned in the world. Many

international sellers can get a considerable profit by ways of wholesale cell phones from China and switch selling. So it is a very

good job on cell phones wholesale in the current cosplay costumes

financial crisis.

Anonymous said...

Your blog is wonderful, I like it very much, thank you!
By the way, do you like Burberry Polos, which are very chic, especially the Ralph Lauren Polo Shirts, I love them very much. I also like playing sports, it can keep healthy, what do you like to do?
We are the outlet of Wholesale Polo Shirt, Polo Ralph Lauren shirts on sale,these products are best-seller in our store cheap polo shirts Cheap Polo ShirtsToday is Christmas, and our products also have a corresponding discount activitiesWholesale Polo Shirts -50% OFF,cheap polo shirts Cheap Polo ShirtsSo if you love these, you should not miss our store, we can meet what you want, and you can find many surprise in our store

Hank Hendricks said...

Silverlight Greeting Card is attractive one,its inspiring card idea.

Plastic Cards Printing
Plastic Business Cards