private string GetStateName(StretchDirections direction) { string name = String.Empty; switch (direction) { case StretchDirections.Bottom: name = "CompressionBottom"; break; case StretchDirections.Left: name = "CompressionLeft"; break; case StretchDirections.Right: name = "CompressionRight"; break; case StretchDirections.Top: name = "CompressionTop"; break; } return(name); }
private string GetAxisName(StretchDirections direction) { string name = String.Empty; switch (direction) { case StretchDirections.Bottom: case StretchDirections.Top: name = "Vertical"; break; case StretchDirections.Left: case StretchDirections.Right: name = "Horizontal"; break; } return(name); }