Geeks With Blogs

News Bob Taco Industries is an ISV focused on game and app development for Microsoft platforms headed up by Michael B. McLaughlin. Mike is a Microsoft Visual C++ MVP (previously an XNA/DirectX MVP from 2011-2013), a developer, a writer, a consultant, and a retired lawyer. If you're a developer who is just getting started, consider checking out the BTI website's section for developers for links to code samples and other helpful sites.
Bob Taco Industries Blogging Division silverlight Posts about Silverlight, most likely Windows Phone 7-centric.
DataContractSerializer: type is not serializable because it is not public?
I recently ran into an odd and annoying error when working with the DataContractSerializer class for a WP7 project. I thought I’d share it to save others who might encounter it the same annoyance I had. So I had an instance of ObservableCollection<T> that I was trying to serialize (with T being a class I wrote for the project) and whenever it would hit the code to save it, it would give me: The data contract type 'ProjectName.MyMagicItemsCl... is not serializable because it is not public. ......

Posted On Wednesday, December 29, 2010 9:14 AM

Windows Phone 7 Developer Launch Events
Be there or be square! Click the banner image to register. Live events in multiple cities and a web simulcast of the Mountain View, CA event on October 12, 2010 starting at 8:45am PDT (GMT -7). NOTE: THE TIME HAS CHANGED. This event is now scheduled to begin at 8:30am PDT (GMT -7) and run to 1:30pm PDT (GMT -7). Sorry for the short notice, I just received an update email on this ......

Posted On Monday, October 4, 2010 1:41 PM

Properly Exiting Silverlight-based WP7 Games
Anyone who has read the Windows Phone 7 Application Certification Requirements (PDF) knows that a WP7 game can never be more than two taps of the Back button away from quitting the game. In XNA this is easy since the Game class provides a method called Exit that can be called with relative ease. In Silverlight nothing quite so easy exists. One clever hack that’s been making the rounds is to create a new instance of the XNA Game class and call its Exit method. However this solution, clever though ......

Posted On Sunday, August 22, 2010 4:38 PM

How to pin your game or app's tile in the emulator (and I still love you WP7!)
I came across this by accident the other day and thought it was really neat. So I wanted to share it to help karma balance my last post (more on that at the end). As I’m sure you know, Silverlight apps install automatically in the application menu. For XNA games, you need to use this handy workaround. Once you do, after you’ve deployed your app or game, it stays installed for the duration of the emulator session. “Yes, yes, we all know that,” you say. Ah, but did you know you could tile your app? ......

Posted On Wednesday, August 18, 2010 11:15 PM

WP7 Questions, Concerns, and Disappointments
Update 2: Excellent news! The $99 per app was wrong. See: Thank you, Fred! Update 1: It's possible that somebody who didn't read closely looked at the old WM 6.X app cert docs, saw the $99 per app fee there, and thought it applied to WP7. I know people who "know people" and are investigating it. I'm very hopeful it's a mistake - see the end of my next post for how someone might ......

Posted On Wednesday, August 18, 2010 2:18 PM

Size Apps and Games Properly Using the WP7 Emulator
For Windows Phone 7 developers, one of the more important pages on the MSDN website is the Design Resources for Windows Phone page. In particular, the UI Design and Interaction Guide for Windows Phone 7 (PDF) found there is something that every developer should read (and sooner rather than later unless you look forward to major redevelopment work at the end of your product’s development cycle). If you read it a while ago, check it out again as it’s now at Version 2.0 (updated and expanded quite a ......

Posted On Friday, August 6, 2010 2:28 AM

WP7, XNA, the GC, and You (and Silverlight too!)
Some of you may have come across this helpful blog post recently, discussing when the garbage collector (a/k/a the GC) runs on Windows Phone 7 devices. Anyone who has programmed in XNA for the Xbox 360 before knows the GC well. For those of you new to XNA, there are several tricks and tips for slaying the evil GC monster that eats frames. This applies to Silverlight apps too, though since Silverlight does quite a lot for you automatically, there’s only so much control you have. First, you must leave ......

Posted On Friday, July 30, 2010 8:28 AM

Windows Phone 7 and learning Silverlight
Recently I wrapped up primary programming on a library for Windows Phone 7 development, which you can find here: . I started it around 6 weeks ago as a quick way to learn Silverlight and replicate some controls that don't exist on WP7 (SaveFileDialog, OpenFileDialog, and FolderBrowserDialog). Quick it wasn’t, but I feel like I understand Silverlight now and I created some nice controls along the way so I’m happy with how it turned out, even if it took about 3-4 weeks ......

Posted On Wednesday, July 28, 2010 11:49 AM

Copyright © Michael B. McLaughlin | Powered by: