Geeks With Blogs
Freestyle Coding Programming in the Real World Win8
Data Binding to Attached Properties
When I was working on my C#/XAML game framework, I discovered I wanted to try to data bind my sprites to background objects. That way, I could update my objects and the draw functionality would take care of the work for me. After a little experimenting and web searching, it appeared this concept was an impossible dream. Of course, when has that ever stopped me? In my typical way, I started to massively dive down the rabbit hole. I created a sprite on a canvas, and I bound it to a background object. ......

Posted On Friday, June 14, 2013 3:17 PM

Improved Keyboard Buffer for Windows Store Apps
Last night, I was playing around with my port. I was having a bit of a problem getting the mouse click to behave as I expected. In a fit of inspiration, I solved that problem in such a way that it allowed me to dramatically improve the keyboard buffer. With the popularity of the keyboard buffer, I thought I'd share right away. As I stated in the original post about the keyboard buffer, WinRT doesn't route keyboard events unless there is a valid target. This forced me to have a control that required ......

Posted On Wednesday, February 20, 2013 11:27 AM

Binding to a UI Element From a Background Thread in Windows Store Apps
This post should be considered part two of the series of posts called "Recreating XNA in Windows Store Apps." I'm basically creating a DrawableGameComponent. However, let's face it, I've discovered that titles like the about gets better traffic. When we last left, we had an object that would update itself on a background thread at a periodic rate that vaguely resembled the functionality of the game loop. Now, we need to draw the object. The good news is that WinRT will automatically update the object ......

Posted On Thursday, February 7, 2013 10:03 AM

Creating an XNA GameComponent in Windows Store Apps
It was unofficially announced yesterday that XNA has officially hit the end of its life. Fortunately, as mentioned in the last post, I'm working on porting everything out of XNA. However, there is stall a lot in XNA to love. As such, I have been making it a point to borrow some of the better features of XNA. Think of this post as the beginning of a series of posts called "Recreating XNA in Windows Store Apps." The first thing I needed to recreate was a GameComponent. For those of you not familiar ......

Posted On Thursday, January 31, 2013 12:27 PM

Creating a Keyboard Buffer in Windows Store Apps
NOTE: I created a better version of this control. There are some important facts in this post that you should read first. However, check out Improved Keyboard Buffer for Windows Store Apps for a much improved version. As I mentioned in my previous post, I came across a situation where I needed to create a keyboard buffer for a Windows Store App. I will now explain why I needed to do this and how I did it. Windows Store Apps do some strange things with the keyboard. There is a completely logical explanation ......

Posted On Saturday, January 26, 2013 12:06 PM

This is not the OnKeyDown you are looking for.
I've been working on porting my sample game code to WinRT. One of the immediate things I found is that there is no direct access to the keyboard buffer. I mean, sure. WinRT is meant to work with devices that don't have keyboards, but that's no excuse. So being the bourbonred-blooded geek I am, I decided to implement my own. Most of this process is not for this post. My next post will show this whole process and include lots of sample code. However, there was one part that was so evil, I decided it ......

Posted On Thursday, January 24, 2013 3:37 PM

Bridged Adaptors in Windows 8
So, this just happened. I just took down an entire corporate network with bridged adaptors in Windows 8. Let's back up. Last night, I was preparing for my talks at CodeMash. When I give Xbox development talks, I have to use a strange network configuration. You see, to debug on an Xbox, you have to have an active connection to both Xbox Live and the development machine. The easiest way to do this on isolated conference wifi is to bridge the wireless connection to the wired connection of my laptop ......

Posted On Thursday, January 3, 2013 3:49 PM

My Impressions of Windows 8 and Visual Studio 11
I decided to download and install the Windows 8 and Visual Studio 11 previews. I figured I had an Acer Inspire One netbook that BARELY met min specs that was holding down paper (as on does with an Acer netbook....) I will not tell you about the installation of Win8. This is because I had my brother download and install it. I will say that he had already downloaded and created the install package on a USB drive. I gave him the netbook at 1PM. He sent me a text saying it was done at 5PM. To me, that's ......

Posted On Tuesday, March 6, 2012 1:38 PM

Copyright © Chris Gardner | Powered by: