public static string ToSKStrokeCap(this SP.StrokeCap strokeCap) { switch (strokeCap) { default: case SP.StrokeCap.Butt: return("SKStrokeCap.Butt"); case SP.StrokeCap.Round: return("SKStrokeCap.Round"); case SP.StrokeCap.Square: return("SKStrokeCap.Square"); } }
private static LineCap ToLineCap(SP.StrokeCap strokeCap) { switch (strokeCap) { default: case SP.StrokeCap.Butt: return(LineCap.Flat); case SP.StrokeCap.Round: return(LineCap.Round); case SP.StrokeCap.Square: return(LineCap.Square); } }