public static bool IsVertical (this StrokeDirection d) { return (d == StrokeDirection.Up) || (d == StrokeDirection.Down); }