private VisualOrientation ViewportOrientation(bool vertical) { if (vertical) return VisualOrientation.Left; else return VisualOrientation.Top; }