Øredev keynote #1: NASA’s Jeff Norris

10 Nov 2010 One thing up front. This conference may blow my mind. My neuronal network(s) will take a shift, for better or worse remains to be seen. Wednesday’s Keynote was held by Dr. Jeff Norris about Vision, Risk and Commitment. Yes, it’s that easy. The first part dealt with Vision, starting off...

Useful Extension Methods for Points and friends in WPF

11 Oct 2010 Every once in a while you may be down to low-level element calculation and placement of elements in WPF. For this situation, I have found the following extension methods quite useful: Translating a point public static Point Translate(this Point p, Func<Point,Tuple<double,double>> translateFunction) { var points = translateFunction(p); return new Point(p.X...

MemBus + Caliburn.Micro = Lean Screen

01 Oct 2010 To be honest, without this blog post on Caliburn.Micro I was kind of stuck. But now I ended up with my Screen conductor, and it’s likely that it is not going to change a lot: [Single] public class ShellViewModel : Conductor<Screen> { private readonly IDisposable screenStreamDispose; public ShellViewModel(IObservable<RequestToActivateScreen> screenStream) {...

MemBus: Using an IoC Container to provide subscribers

27 Sep 2010 The “Observe” and “Subscribe” functionality already opens up numerous possibilities for reacting to messages. Another way to handle messages is by providing a Handler which accepts messages of a certain type: public interface IHandles<T> : ISubscription { void Push(T message); } Once we’re down to providing instances to handle available...

MemBus extension points

20 Sep 2010 ISubscription public interface ISubscription { void Push(object message); Type Handles { get; } } This is the basic structure of a subscription. There is also a typed version: public interface IHandles<T> : ISubscription { void Push(T message); } If you want to write a handler, you can inherit from the...