Deprecated: Assigning the return value of new by reference is deprecated in /home/dieajax/public_html/wordpress/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /home/dieajax/public_html/wordpress/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/dieajax/public_html/wordpress/wp-includes/theme.php on line 507

Warning: Cannot modify header information - headers already sent by (output started at /home/dieajax/public_html/wordpress/wp-includes/cache.php:36) in /home/dieajax/public_html/wordpress/wp-includes/feed-rss2.php on line 2
Die, AJAX! » Silverlight http://www.dieajax.com Helping developers put a new face on the web. Sun, 06 Mar 2011 03:04:44 +0000 http://wordpress.org/?v=2.2 en 10 Minute Silverlight Tutorial - Implementing Silverlight 3 out-of-browser support http://www.dieajax.com/2009/04/26/10-minute-silverlight-tutorial-implementing-silverlight-3-out-of-browser-support/ http://www.dieajax.com/2009/04/26/10-minute-silverlight-tutorial-implementing-silverlight-3-out-of-browser-support/#comments Mon, 27 Apr 2009 02:07:37 +0000 admin http://www.dieajax.com/2009/04/26/10-minute-silverlight-tutorial-implementing-silverlight-3-out-of-browser-support/ Welcome to my Silverlight 3 out-of-browser tutorial. Silverlight out-of-browser functionality allows the user to install Silverlight applications to their local machine and run them offline. This gives developers the additional challenge of supporting both an in-browser and out-of-browser environement as well as gracefully handling offline scenarios. To help developers work through these issues, I created this tutorial which walks through detecting a Silverlight application’s current execution environment and determining if it has Internet access. This is a long one, so let’s not waste anymore time. (more…)

]]>
http://www.dieajax.com/2009/04/26/10-minute-silverlight-tutorial-implementing-silverlight-3-out-of-browser-support/feed/
10 Minute Silverlight Game Programming Tutorial - Shootorial Conversion #5 (C#) http://www.dieajax.com/2008/12/13/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-5-c/ http://www.dieajax.com/2008/12/13/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-5-c/#comments Sat, 13 Dec 2008 23:19:58 +0000 admin C#gamesManaged CodeSIlverlightTutorial http://www.dieajax.com/2008/12/13/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-5-c/ Welcome bac..

Ahhh, screw it. You know the drill.

This time, we blow $#!* up. (more…)

]]>
http://www.dieajax.com/2008/12/13/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-5-c/feed/
10 Minute Silverlight Game Programming Tutorial - Shootorial Conversion #4 (C#) http://www.dieajax.com/2008/11/14/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-4-c/ http://www.dieajax.com/2008/11/14/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-4-c/#comments Sat, 15 Nov 2008 03:17:06 +0000 admin C#gamesManaged CodeSIlverlightTutorial http://www.dieajax.com/2008/11/14/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-4-c/ Another day, another shootorial! Every good game has a villian and in this fourth installment, we will add several villians at random intervals. OO-ifying the game in the last tutorial will make adding enemy ships almost embarrassingly easy.

So, let’s get started! (more…)

]]>
http://www.dieajax.com/2008/11/14/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-4-c/feed/
10 Minute Silverlight Game Programming Tutorial - Shootorial Conversion #3 (C#) http://www.dieajax.com/2008/11/09/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-3-c/ http://www.dieajax.com/2008/11/09/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-3-c/#comments Sun, 09 Nov 2008 19:23:12 +0000 admin C#gamesManaged CodeSIlverlightTutorial http://www.dieajax.com/2008/11/09/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-3-c/ Welcome back! In my previous Silverlight game programming tutorial, I converted Kongregate’s Flash Shootorial #2 to Silverlight, giving a scrolling background for the space ship to fly over. So today, in Shootorial #3, you will arm that ship with missiles, transforming into a lethal killing machine.

Kinda ;).

Again, keep in mind that Kongregate wrote these tutorials for beginning programmers, thus they prefered to “make things work” rather than “make things work in the best way”. And, in the interest of keeping the code simple, I plan to cut corners, too ;). Additionally, this tutorial builds on my other tutorials, so if you don’t understand something please refer to Shootorial Conversion #2 and Shootorial Conversion #1.

Here we go! (more…)

]]>
http://www.dieajax.com/2008/11/09/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-3-c/feed/
10 Minute Silverlight Game Programming Tutorial - Shootorial Conversion #2 (C#) http://www.dieajax.com/2008/11/06/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-2-c/ http://www.dieajax.com/2008/11/06/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-2-c/#comments Thu, 06 Nov 2008 18:23:28 +0000 admin C#gamesManaged CodeSIlverlightTutorial http://www.dieajax.com/2008/11/06/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-2-c/ I knew you’d come back for more :).

Welcome to the next tutorial in my Silverlight game programming tutorial series. For those out of the loop, I recently started a series of tutorials porting Kongregate’s Flash game programming tutorial series over to Silverlight. In my last Silverlight game programming tutorial I converted their Shootorial #1 tutorial, so this time I will convert Shootorial #2.

As I stated before, Kongregate’s tutorials assume no programming knowledge and holds your hand while walking you through the IDE. Conversely, I assume a basic understanding of C# programming and I don’t use the IDE at all. Also, I assume you read enough of my previous Silverlight tutorials to know how to deploy a basic Silverlight application. If not, check the previous game programming tutorial’s prerequisites to learn more.

Okay,…onward! (more…)

]]>
http://www.dieajax.com/2008/11/06/10-minute-silverlight-game-programming-tutorial-shootorial-conversion-2-c/feed/
10 Minute Game Programming Tutorial: Silverlight - Shootorial #1 Conversion (C#) http://www.dieajax.com/2008/11/01/10-minute-game-programming-tutorial-silverlight-shootorial-1-conversion-c/ http://www.dieajax.com/2008/11/01/10-minute-game-programming-tutorial-silverlight-shootorial-1-conversion-c/#comments Sat, 01 Nov 2008 04:59:38 +0000 admin C#gamesManaged CodeSIlverlightTutorial http://www.dieajax.com/2008/11/01/10-minute-game-programming-tutorial-silverlight-shootorial-1-conversion-c/ Welcome to the first of many Silverlight game programming tutorials on dieajax.com. In a burst of originality and creativity, for this initial set of tutorials, I decided to convert Kongregate’s excellent beginning Flash game programming tutorial series to Silverlight. The first of these let’s the developer get their feet wet by walking them through drawing a space ship on the screen that they can move with the arrow keys. These tutorials focus on simplicity, clarity and “getting something to work”, rather than writing battle-hardened, production-ready code. However, as time goes on, the tutorials will certainly get more advanced and I, personally, have plans to create and give away the source code to as many fully-playable Silverlight games as I can make.

Alright, let’s begin! (more…)

]]>
http://www.dieajax.com/2008/11/01/10-minute-game-programming-tutorial-silverlight-shootorial-1-conversion-c/feed/
Introduction to game programming in Silverlight http://www.dieajax.com/2008/10/28/introduction-to-game-programming-in-silverlight/ http://www.dieajax.com/2008/10/28/introduction-to-game-programming-in-silverlight/#comments Wed, 29 Oct 2008 03:43:25 +0000 admin C#gamesManaged CodeSIlverlight http://www.dieajax.com/2008/10/28/introduction-to-game-programming-in-silverlight/ Even with an initial release less than two years ago, a thriving community of game developers write games for the Silverlight platform. Still, the Flash platform probably employs the largest game developer community, so in order to help eager Silverlight game developers enter the fray, I will convert Kongregate’s Flash game programming tutorials to Silverlight. Like the rest of my Silverlight tutorials, these tutorials will not require you to install Visual Studio. And, while informative, the Kongregate tutorials (necessarily) don’t address the more advanced concepts in game programming ( i.e. multi-threaded game loops, 3D rendering, etc). I will attempt to address these topics and more in future Silverlight game programming tutorials. (more…)

]]>
http://www.dieajax.com/2008/10/28/introduction-to-game-programming-in-silverlight/feed/
10 Minute Tutorial - Silverlight: Mouse button and scroll wheel event handling using managed code (C#) http://www.dieajax.com/2008/10/20/10-minute-tutorial-silverlight-mouse-button-and-scroll-wheel-event-handling-c/ http://www.dieajax.com/2008/10/20/10-minute-tutorial-silverlight-mouse-button-and-scroll-wheel-event-handling-c/#comments Tue, 21 Oct 2008 03:49:00 +0000 admin C#JavaScriptManaged CodeSIlverlightTutorial http://www.dieajax.com/2008/10/20/10-minute-tutorial-silverlight-mouse-button-and-scroll-wheel-event-handling-c/ Originally, I wanted this post to stand as the definitive tutorial on mouse handling in Silverlight. However, after researching all the different methods people use to handle the right mouse button and scroll wheel in Silverlight, I quickly gave up that pipe dream. Instead, this tutorial serves as merely a starting point for handling mouse events in Silverlight. If you can’t find what you need here, chances are, someone else has hacked together the solution you nedd. I provide links to a few of these solutions on my Silverlight Portal page.

So, for this tutorial, we will create a rectangle that you can drag using the left mouse button, resize using the scroll wheel and change its color using the right mouse button. Hopefully, this examle will give you a basic overview on how to handle mouse events in Silverlight.

With all that said, let’s get started. (more…)

]]>
http://www.dieajax.com/2008/10/20/10-minute-tutorial-silverlight-mouse-button-and-scroll-wheel-event-handling-c/feed/
Silverlight 2 Released! http://www.dieajax.com/2008/10/14/silverlight-2-released/ http://www.dieajax.com/2008/10/14/silverlight-2-released/#comments Wed, 15 Oct 2008 00:58:06 +0000 admin SIlverlight http://www.dieajax.com/2008/10/14/silverlight-2-released/ After months of waiting, wishing and hoping, Microsoft FINALLY released Silverlight 2.0 today. Given both the Betas and the RC releases, we all pretty much know what the official release contains, so I won’t go over it here. I will however give you some links to read more:

Mike Snow announces the release
Jessie Liberty has an excellent release guide
Scott Guthrie gives an overview off the Silverlight 2 goodness

One other thing: It looks like Microsoftl also supports developing Silverlight applications using Eclipse! Although the tutorials I write on this site will never require you to have an IDE, I am very excited by this news. Here’s a few more links on Silverlight with Eclipse to whet your appetite:

eclipse4sl Home Page
Silverlight development with Eclipse tutorial

More Silverlight tutorials on the way!

]]>
http://www.dieajax.com/2008/10/14/silverlight-2-released/feed/
Silverlight 2 RC0 Released; Silverlight Portal is up http://www.dieajax.com/2008/09/28/silverlight-2-rc0-released-silverlight-portal-is-up/ http://www.dieajax.com/2008/09/28/silverlight-2-rc0-released-silverlight-portal-is-up/#comments Sun, 28 Sep 2008 20:53:19 +0000 admin SIlverlight http://www.dieajax.com/2008/09/28/silverlight-2-rc0-released-silverlight-portal-is-up/ Two pieces of news today. First, if you’ve lived under a rock for the past week, Microsoft dropped the bits for the first Silverlight 2 release candidate. This is a DEVELOPER RELEASE only. That means, Microsoft will have NO official consumer Silverlight 2 RC0 runtime, so you should not actually expose RC0 applications to the rest of the world. Mircosoft only did this release to make sure developers could get their applications converted over in anticipation of an official release (which means Microsoft may do an official release soon). You can find more information, including breaking changes, at the links below:

Method of Failed - Silverlight 2 RC0 Released for Developers
ScottGu’s Blog - Silverlight 2 Release Candidate Now Available
Silverlight Version 2 RC0 Released!! (details all breaking changes in the post)

Being a only a developer release, I wiil not update any of my Silverlight 2 Beta 2 tutorials. Once Microsoft offically releases Silverlight 2, then I will make sure all my tutorials work. However, after looking over the breaking changes, I believe all my samples should continue to work fine.

Secondly, I finally launched the first version of Die, Ajax!’s Silverlight Portal. Long-term, I want the Silverlight Portal to aggregate the best of all the Silverlight tutorials on the web in one place. Things may look kind of sparse now, but I will add plenty more tutorials over the following weeks. So, go ahead, knock yourself out.

]]>
http://www.dieajax.com/2008/09/28/silverlight-2-rc0-released-silverlight-portal-is-up/feed/