|
|
|
|
|
Single Responsibility Principle in Serialization
by
Mike Gold
On
Jun 02, 2010
The Single Responsibility Principle may be one of the most important design concepts in programming. This blog illustrates how Microsoft broke this pattern in MFC, and how they later redeemed themselves in .NET
|
|
|
|
|
Porting from C# to Java
by
Mike Gold
On
Apr 06, 2010
I am currently involved in a project of migrating a C# data layer to java in order to run on LINUX. Here are my thoughts on the activity.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Using a ContainerBindingCollection in a Telerik RadTreeView in Silverlight
by
Mike Gold
On
Feb 25, 2010
A RadTreeView is a Telerik control that allows you to display and select from a hierarchal list. Telerik pays close attention to allowing the user to bind their controls to a ViewModel and having it function correctly. The following demonstrates how you can bind an IsSelected property in your view model to a selection in your RadTreeView using the ContainerBindingCollection
|
|
|
|
|
|
|
|
|
A simple hex to color tool for Visualizing Color
by
Mike Gold
On
Feb 11, 2010
I recently needed to interpret colors produced by blend in a XAML file. I could have gone to Paint and examined the colors, but instead I threw together a quick utility to interpret the color in a Window Forms .NET application.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Binding your MVVM model to an AttachedProperty
by
Mike Gold
On
Feb 03, 2010
Just spent about an hour reading blogs and trying to figure out how to bind to attached property. In my many trial and error approaches, I finally came upon one that works, although it seems more like there is a bug in Silverlight 3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rethinking the Switch Stataement with...A Dictionary?
by
Mike Gold
On
Oct 11, 2009
Sometimes its better to refactor an ugly switch statment into a more flexible pattern. The command dispatch pattern is such a pattern. Originally implemented using OO and polymorphism, the functional constructs gives you a cleaner solution.
|
|
|
|
|
Reversing a Dictionary in LINQ and C#
by
Mike Gold
On
Oct 06, 2009
Every once in a while you are posed with an interesting puzzle. Someone needed a dictionary reversed and this sounded just like the thing I would enjoy tackling with LINQ.
|
|
|
|
|
|
|
|
|
Extending JQuery
by
Mike Gold
On
Jun 24, 2009
You can extend the jquery object yourself with the extend method and then use those methods you created as if it were any other jquery object.
|
|
|
|
|
|
|
|
|
|