Geeks With Blogs

Michael Crump Microsoft MVP, INETA Community Champion and XAML Advocate. June 2010 Entries
Working with the Grid in SilverLight/WPF
I’ve been trying to wrap my head around the Grid in Silverlight/WPF today and decided that I’d share this with others. I made this diagram and the following xaml code snippet to remember how to position controls/etc in the grid. From looking at the image below, we have a 3x3 Grid that starts at 0. After you create a Grid, debugging is easier if you turn the ShowGridLines to true. Now its time to setup the RowDefinitions and ColumnDefinitions. We can create a button control now. You should pay special ......

Posted On Wednesday, June 30, 2010 3:05 PM

Getting started with MVVM (General Info+Links)
OK, Lots of confusion around this pattern. I am also trying to wrap my head around this pattern and wanted to present what I have learned so far as well as my favorite links on the subject. I’m also working on a sample program that is from start-to-finish. Model View ViewModel is usually called: MVVM PresentationModel or just the plain ViewModel It is just an architectural pattern for Silverlight of WPF. It is designed to allow Designers to focus on the user experience instead of the business logic. ......

Posted On Sunday, June 27, 2010 9:54 PM

TextBox Validation for alpha/numeric chars.
I’ve been answering this question over and over about TextBox validation on the MSDN forums. I wanted to post it on my blog as a point of reference for future users. Basically the question is, I have a textbox and want to restrict numeric values or alpha only. I’ve seen so many version of this involving Regular Expressions to some crazy alpha/numeric array searches. Below is the method that I am using in several production apps as well as community apps. I hope this helps the people on the MSDN forums ......

Posted On Sunday, June 27, 2010 9:07 PM

Building a simple “About” Screen using FlowDocument [WPF]
I am using this blog to assist other beginner/intermediate developers with anything that deals with developing software. I also use this blog to help myself remember things or ideas. This is the first blog post on several ideas that I have using WPF and would like to share with the community. Some of my ideas may be crazy or far-fetched but I would like to think of myself as a little strange anyways. This post is about using the FlowDocument to create an “About” box. First, an overview straight from ......

Posted On Tuesday, June 22, 2010 1:21 PM

3 Things that I wish someone would have told me about WPF controls.
As you begin your WPF journey, you will have many frustrations with learning XAML. The three WPF control listed here were the things that frustrated me the most and I hope this helps someone out there. 1) Content controls such as the button can contain only a single nested element. But you can easily get around this with adding a StackPanel. Not allowed! Allowed! 2) Suppose you want to create a Mnemonic Keys and you are familiar with WinForms. Your first thought it to use “&Click Me”. In XAML, ......

Posted On Friday, June 18, 2010 5:57 PM

Configuring Application/User Settings in WPF the easy way.
In this tutorial, we are going to configure the application/user settings in a WPF application the easy way. Most example that I’ve seen on the net involve the ConfigurationManager class and involve creating your own XML file from scratch. I am going to show you a easier way to do it. (in my humble opinion) First, the definitions: User Setting – is designed to be something specific to the user. For example, one user may have a requirement to see certain stocks, news articles or local weather. This ......

Posted On Thursday, June 17, 2010 5:40 PM

10 Best Programming Podcast 2010 Edition
This list is in no particular order. Just the 10 best programming podcast that I have found so far. Stack Overflow Podcast - Jeff Atwood (of and Joel Spolsky (of discuss the development of their new programming community, [This Podcast hasn’t been updated in a while, but its always great to hear more from Jeff Atwood] Hanselminutes - Hanselminutes is a weekly audio talk show with noted web developer and technologist Scott Hanselman and hosted ......

Posted On Tuesday, June 15, 2010 6:40 PM

A .NET Developers day with the iPad.
The Apple iPad is currently getting a lot of buzz because of the app store, the book store and of course iTunes. I had the chance to play with one and this is what I have learned about the device. Let’s get this out of the way first, the iPad is awesome. It is the device for media consumption and casual web browsing. But how does it measure up to those of us with .NET on our brains all days. Let’s find out… Main Screen – you can customize everything on this page. I guess I should replace that image ......

Posted On Saturday, June 12, 2010 2:36 PM

Garage Sale Code – Everything must go!
Garage Sale Code The term “Garage Sale Code” came from a post by Scott Hanselman. He defines Garage Sale Code as: Complete – It’s a whole library or application. Concise – It does one discrete thing. Clear – It’ll work when you get it. Cheap – It’s free or < 25 cents. (Quite Possibly) Crap – As with a Garage Sale, you’ll never know until you get it home if it’s useless. With the code I’ve posted here, you’ll get all 5 of those things (with an emphasis on crap). All of the projects listed below ......

Posted On Wednesday, June 2, 2010 7:51 AM

Copyright © mbcrump | Powered by: