public static string ToTextString(this ThicknessViewModel thickness) { var t = thickness.ToThickness(); if (t.IsUniform) { return(Invariant(t.Left)); } else if (t.Left.Equals(t.Right) && t.Top.Equals(t.Bottom)) { return($"{Invariant(t.Left)} {Invariant(t.Top)}"); } return($"{Invariant(t.Left)},{Invariant(t.Top)},{Invariant(t.Right)},{Invariant(t.Bottom)}"); }
public static string ToTextString(this ThicknessViewModel thickness) { return($"{thickness.ToThickness()}"); }