C# Class CodeConnect.Touch.Helpers.TouchControlShapeFactory

Exibir arquivo Open project: CodeConnect/TouchVS

Public Methods

Method Description
GetMiddleSegment ( ) : UIElement
GetSegment ( int totalSegments, int index ) : System.Windows.Media.Geometry
GetTextPosition ( int totalSegments, int index ) : Point

Private Methods

Method Description
ToCartesian ( double angle, double radius ) : Point
formatInvariant ( IFormattable format ) : string

Interpolates the string in invariant culture Note: this is the only method that requires .NET framework 4.6 If we ever need to drop to 4.5, we'll just format the string the old way.

Method Details

GetMiddleSegment() public static method

public static GetMiddleSegment ( ) : UIElement
return UIElement

GetSegment() public static method

public static GetSegment ( int totalSegments, int index ) : System.Windows.Media.Geometry
totalSegments int
index int
return System.Windows.Media.Geometry

GetTextPosition() public static method

public static GetTextPosition ( int totalSegments, int index ) : Point
totalSegments int
index int
return Point