public static bool IsHorizontal (this StrokeDirection d) { return (d == StrokeDirection.Left) || (d == StrokeDirection.Right); }