Go Back   Zune Boards > Zune Discussions > Zune Hacks & Mods > In Progress

In Progress Want to know what hacks & mods we are working on?

Reply
 
LinkBack Thread Tools
Old 12-17-2008, 10:52 PM   #1 (permalink)
Jr. Zuner
 
Krebo's Avatar
 
Join Date: Mar 2007
Posts: 43
Krebo is on a distinguished road
Default Zune Social on Silverlight (v1)

For about as long as Zune Social's been around (one year), I've been wondering why Microsoft only shows their Zune Card using Adobe Flash, considering they're working hard to push Silverlight (the "Flash killer") elsewhere on the web. I thought the technology looked cool, and I decided to test it out.

So after slowly gathering the pieces and information I needed to put together a version of the Zune Card on Silverlight, I have this: a rudimentary yet working Silverlight application. I'm working on implementing some of the features we've come to know and love on the official page, and if anyone has any info (like how Storyboards work, how to choose an Element based on attributes, or just general coding help) I would greatly appreciate it.

Here's how it's looking so far.


You can download the source from Send big files the easy way. Files too large for email attachments? No problem!. Remember that you have to run it from a web service (you can't just run the html). To do this, build it in Visual Studio or Expression Blend.

Thanks!
-Adam Krebs (Adam at ZuneThoughts.com)



Krebo is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old 12-17-2008, 10:55 PM   #2 (permalink)
Kiss the Cook!
Moderator
Super Zuner
 
Jorvette's Avatar
 
Join Date: May 2008
Location: Vancouver BC Canada
Posts: 1,789
Jorvette is a name known to allJorvette is a name known to allJorvette is a name known to allJorvette is a name known to all
Send a message via Skype™ to Jorvette
Default

Cool!
__________________



Jorvette is offline   Reply With Quote
Old 12-17-2008, 11:05 PM   #3 (permalink)
Purger of Ignorance
zB Programmer
Retired Staff
Expert Zuner
 
Netrix's Avatar
 
Join Date: Jun 2008
Location: In my own world
Posts: 2,805
Netrix is a name known to allNetrix is a name known to allNetrix is a name known to allNetrix is a name known to allNetrix is a name known to all
Send a message via MSN to Netrix
Default

That looks pretty good. If I had more time, I would learn how to develop with Silverlight.
__________________
"Against logic there is no armor like ignorance." - Laurence J. Peter

Solitaire for your Zune! http://www.zuneboards.com/forums/dow...ne-v2-0-a.html

Zune Book Reader! http://www.zuneboards.com/forums/app...ew-thread.html




Netrix is offline   Reply With Quote
Old 12-18-2008, 09:02 AM   #4 (permalink)
Jr. Zuner
 
Krebo's Avatar
 
Join Date: Mar 2007
Posts: 43
Krebo is on a distinguished road
Default

Quote:
That looks pretty good. If I had more time, I would learn how to develop with Silverlight.
It's actually pretty simple. It's just a combination of C# and XAML, which are both comparatively easy to learn (this is my first project with either).



Krebo is offline   Reply With Quote
Old 12-18-2008, 09:23 AM   #5 (permalink)
"Dear Agony"Out Sept 29th
Senior Writer
Support Team
GFX Crew
Global Moderator
Ultimate Zuner
 
Charge's Avatar
 
Join Date: Aug 2007
Location: England
Posts: 6,372
Charge has a brilliant futureCharge has a brilliant futureCharge has a brilliant futureCharge has a brilliant futureCharge has a brilliant futureCharge has a brilliant futureCharge has a brilliant futureCharge has a brilliant future
Default

Very nice!





Charge is offline   Reply With Quote
Old 12-18-2008, 10:46 AM   #6 (permalink)
Jr. Zuner
 
Krebo's Avatar
 
Join Date: Mar 2007
Posts: 43
Krebo is on a distinguished road
Default

I've uploaded a version to Live. Let me know if there are any issues:

zCard_silverLight



Krebo is offline   Reply With Quote
Old 12-18-2008, 12:00 PM   #7 (permalink)
Zuner
 
RoguePlanetoid's Avatar
 
Join Date: Jan 2008
Location: United Kingdom
Posts: 59
RoguePlanetoid is on a distinguished road
Default

Pretty clever I wanted to implement something like this similar to my ZuneCardr product but no one was interested in that - thought about using LINQ myself for that too - but well done for getting a Silverlight app running - how did you solve the XSS problem with regards to loading content from another domain in a silverlight app e.g. calling zune.net objects say from zuneboards.com via Silverlight - I could never get this to work myself? Great work anyway!
__________________
http://social.zune.net/member/RoguePlanetoid





RoguePlanetoid is offline   Reply With Quote
Old 12-18-2008, 04:03 PM   #8 (permalink)
Jr. Zuner
 
Krebo's Avatar
 
Join Date: Mar 2007
Posts: 43
Krebo is on a distinguished road
Default

Rogue: Thanks for the props! I thought I was going to lose my head when I couldn't figure out the XSS domain problem (Silverlight's got some pretty stringent security measures). Check out this MSDN article on cross-site data in Silverlight. I load the XElement data through a Stream, which is created using WebClient. It's all there in the source code if you want to take a look.

The XLINQ stuff comes from a Silverlight/Expression dev who created a simple C# app to download it all. I'm sorta new to this stuff, so everything is pretty poorly hacked together. If you can offer any suggestions, I'd really appreciate it.

Also: I'm having difficulty running the app from the Live hosting. Is it working for anyone else? Thanks!

Last edited by Krebo; 12-18-2008 at 04:05 PM. Reason: stupid auto-links..



Krebo is offline   Reply With Quote
Reply

Bookmarks

Thread Tools