Composite and Memento Design Patterns – A Real World Example

So you don’t need to know software design patterns. But, as I hope got across in my post, knowing and understanding patterns can only benefit you. I wanted to put together a real-life example of some of the instances where I’ve used patterns, even if the use of the patterns was unintentional. Hopefully you will […]

.

Read more

Binding a Dependency Property of a View to its ViewModel

UPDATE 07/30/2014:Please be sure to check out the second part to this at Binding a Dependency Property of a View to its ViewModel, part Deux which contains a working sample solution of the code here. I like MVVM in concept and I had prepared a long, off-topic rant about MVVM because of a bit of […]

.

Read more

The Task Parallel Library Sampler – Part 4: Sampler View, View Model and Model

Part One: Starting with MVVMPart Two: The MVVM solution structure and basic frameworkPart Three: Base Classes I want to go over the main view (SamplerView), view model (SamplerViewModel) and model (Sampler) classes next. I’ve gone over the ItemsControl that populates the TPL samples but I wanted to cover the other MVVM aspects as well as […]

.

Read more

The Task Parallel Library Sampler – Part Three: Base Classes

Part One: Starting with MVVMPart Two: The MVVM solution structure and basic framework Let’s take a look at SampleView, SampleViewModel and the base Sample class all of our models extend from so we can get a better understanding of how this works. In the first set of samples included with the code the only controls […]

.

Read more

WP7, ApplicationBar, ImageUri and the Icon not showing up

Build Action: Content Copy to Output: Copy always (or ‘Copy if newer’, either should work) I spent a half an hour trying to figure out why my application bar was showing an “X” instead of the image I was putting in IconUri. When first adding images the properties default to: Build Action: Resource Copy to […]

.

Read more

Databinding, ListView/GridView and Converter

Had some trouble with using a converter when databinding on a GridView yesterday so I thought I’d do a quick write up. Imagine for one instance you have the following class: Now imagine you have the following xaml: To bind to the grid all you would have to do on the window load event is: […]

.

Read more

WPF – ContentProperty, it’s that simple

So there I am, creating a custom control called “RequiredLabel” thatinterestingly enough is a label that has a cool icon in it to show thatwhatever it is being used for is required. The control has twoproperties, Text that is the text of the label and Style that is thestyle of the label. Both are registered […]

.

Read more

WPF and MousePosition

The way I thought it should be done (but it’s wrong): “Mama Freeda! Dang window won’t go where I put it!” Okay, maybe I didn’t say “Mama Freeda” nor “Dang” but none the less itseems like when getting a mouse position in WPF and trying to open a newwindow relative to the mouse click is […]

.

Read more
FormatException

928 East Plymouth Drive Asbury Park, NJ 07712