March 2011 Entries

Stop writing ViewModels and start using T4 !!!!

If you hate being a mindless drone in some Illogical software sweatshop, switch to T4. Note that you cannot use reflection - you must use EnvDTE or your VS instance will lock. Use the T4Toolbox to access the current TransformContext to pull classes from files. Apply an iteration to generate properties in the target class that use the model source class for backing properties and change notification. It just works! <#@ templatedebug="true" hostSpecific="true" #> <#@ outputextension=".cs" ......

Posted On Wednesday, March 30, 2011 8:49 PM | Comments (0)

MVVM DSLs and XAML Binding Abstractions

I dont know about you, but last year I suffered from MVVM overdose. I literally felt sick having to go through the rote task of building the same old Prism modules and building the same old ViewModel to abstract my Model, setup my bindings in my view .... again and again and again and again .... ad nausium. Now that I've had a break from client side information system dev, I can think about it from a different perspective. I've leveraged and investigated the following technologies. 1) Cinch from ......

Posted On Wednesday, March 30, 2011 1:01 PM | Comments (1)

WCF Operations and Multidimensional Arrays

You cant pass MultiD arrays accross the wire using WCF - you need to pass jagged arrays. heres 2 extension methods that will allow you to convert prior to serialzation and convert back after deserialization: public static T[,] ToMultiD<T>(this T[][] jArray) { int i = jArray.Count(); int j = jArray.Select(x => x.Count()).Aggregate(0, (current, c) => (current > c) ? current : c); var mArray = new T[i, j]; for (int ii = 0; ii < i; ii++) { for (int jj = 0; jj < j; jj++) { mArray[ii, ......

Posted On Wednesday, March 16, 2011 1:31 PM | Comments (0)

Copyright © JoshReuben

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski