Platform Invoke

Punch line:  PInvoke should be used sparingly; there should be a managed API for almost everything you want to do.  However, sometimes you absolutely have to talk to the unmanaged world from your comfy managed world.  Not using it often is not an excuse for not knowing about it.  First, who knows what problems you…


MVVM criticism

Most literature i’ve been reading raves about MVVM, but in the spirit of a critical pedagogy, it’s good to remember MVVM can’t serve as a panacea. Alexander Biskop’s venting session scrutinizes, as opposed to only evangelizing, the pattern à la mode.  Biskop’s primary charge is aligned with the MVVM sample applications i’ve seen thus far-they…

1

"MVVM – It’s Not Kool-Aid" by Jesse Liberty

Jesse Liberty’s blog post titled “MVVM – It’s Not Kool-Aid” illustrates succinctly a key refrain in the MVVM mantra. “Core Concept #2 Don’t Look Up.We tend to conceptualize the View (User Interface objects) at the top, the ViewModel (objects that provide the UI with its data and behaviors) in the middle and the model (often…


"Advanced MVVM" by Josh Smith

davihard’s “Cliffs Notes” of “Advanced MVVM” WPF Review/MVVM Intro XAML based layout flow and user interaction event definition; they do some nice painting and rendering performance for you. “It was once commonly said that all roads lead to Rome. Today all WPF and Silverlight best practices lead to the Model-View-ViewModel design pattern.” This is great…


FlowDirection in WPF/Silverlight

A colleague of mine illustrated how easy a majority of our work would be in switching our Silverlight application to a bidirectional context layout flow (RTL, rather than LTR). Path seems to flip X coordinate space automatically based on FlowDirection. at least in WPF 3.5. (I didn’t have SL4 handy.) There’s no reason I know…


bidirectional text support for text element truncation in HTML

my investigation of bidirectional text was largely Silverlight based.  i was removed, but cognoscente and curious, about the HTML discussion in which other colleagues of my team were engaged.  Hereafter exists the summary of Bob’s investigation into dealing with bidirectional text behaviors. Behavior in a mixed environment for Bidi and non-Bidi text When dealing with…


Nikhil Kothari at MIX’10 on MVVM/RIA/MEF

A couple of my colleagues, Erich and Nathan, have been trying to impress upon me the magnitude of Expression Blend and MVVM and the glorious byproduct of having to write less code. Nikhil illustrates time and again in this presentation many of the points my colleagues have advocated. Another colleague tells me to “check out…


MVVM deep dive

For the next few weeks i’ll be doing a “deep dive” into MVVM. Below is an excerpt from a deep dive kickoff e-mail i got from my boss. In coming posts i’ll publish summaries/notes of these resources. Model – View – ViewModel (MVVM) We’re moving forward with a deep dive into the MVVM design pattern…


Windows Forms new accessibility feature

Windows Forms, (specifically check boxes in this blog post), now detect that a screen reader is present and appends CHECKED or UNCHECKED to your list items.


before and after layout flow

A recurring concept in the i18n community is the layout flow of all visual widgets.  For example, a magnitude bar may grow from the left to the right while in the en-us locale, but in the ar-su locale the bar would grow from the right to the left.  It becomes convenient to speak in terms of…