December 28, 2011 at 9:41 AM
—
Dustin Horne
I decided to finish out the year by converting my XNA Terrain series to work with Silverlight 5 and XNA but during the process of converting I ran into an interesting issue. The Texture2D.GetData() method is oddly missing from the Silverlight 5 XNA implementation. I came across several posts around the web asking for a workaround but found no solution so I decided to develop my own. More...
September 29, 2011 at 5:36 PM
—
Dustin Horne
I've made the files availble from tonight's QuadTree presentation at the OmahaMTG .NET user group meeting. The zip file contains the powerpoint deck as well as a Visual Studio 2010 solution with Silverlight demo app as well as a generic QuadTree. This was a quick and dirty solution so many things can be improved. The TreeObject could be converted to a container that holds the actual object you're storing in the tree. This would eliminate the need for you to inherit from the TreeObject with your objects. You would simply store them inside the tree object using a Generic List and a TreeObject.Add<T>(T object) method.
For a demo of the QuadTree in action: http://www.dustinhorne.com/quadtreedemo.html
Download Here
Also, check out Brian Legg's introduction to XNA 4.
1c2061ba-6de8-40cc-9f29-53544a064f0b|2|4.5
Posted in: Silverlight
Tags:
November 22, 2010 at 12:44 AM
—
Dustin Horne
While Silverlight is a powerful tool for rich client applications, it lacks the ability to perform asymmetric encryption out of the box. In this article, I'm going to share a cryptography class library I've been working on and show you how to use it to perform standards compliant RSA Encryption in Silverlight that is cross compatible with .NET's built in RSACryptoServiceProvider, allowing you to encrypt from Silverlight using my library and decrypt on your website using the RSACryptoServiceProvider. For brevity, only examples using my class library will be shown except for a few examples that show equivelant functionality from the RSACryptoServiceProvider (RSACSP).
Update 11/24/2010: The Scrypt library has been updated. Key generation is now performed Asynchronously to avoid blocking the UI thread and freezing the browser. I've updated the applicable source samples in this article to reflect the changes.
More...
July 8, 2010 at 7:34 PM
—
Dustin Horne
Today I'm going to show you how easy it is to leverage the power of property binding in Silverlight. I'm going to provide a very simplistic example that, while not very useful in itself, I hope will spark your imagination and show you how easy it is. In my example I'm going to show you how to capture the position of the mouse over a canvas and keep the live updated mouse position in a separate class. In addition, I'll show you how to update your UI directly (moving a box with the mouse and using labels to show the current mouse position) without directly wiring a single event to those controls in your page codebehind!
Before the MVVM pattern folks start foaming at the mouth over this article, I'd like to point out that this is meant to be a very simple demonstration and is not meant to be an MVVM application. However, I will introduce you to a few concepts along the way that you will leverage in the MVVM design pattern. I'm going to briefly introduce you to the DataContext object and I'll be storing the mouse data in a separate class but I will not create a complete Model-View-ViewModel separation for this example. I will, however be encouraging a separation of UI and logic that will serve as a good starting place when you decide to dive into the world of MVVM. Now, on with the show...
More...