SegmentedDisplayGenerateSegments Method

Method generates a an IList of PolylineGeometry objects, which are then rendered to the SegmentedDisplay. Each PolylineGeometry represents one segment. The input argument contains information whether a particular segment should be drawn or not. The positions of Boolean values in the input array denotes the segment to be drawn/hidden. The segments are positions in the array in the following way: Vertical Segments: 0 - left bottom, 1 - left upper, 3 - right upper, 4 - right bottom Horizontal Segments: 2 - upper, 5 - bottom, 6 - middle

Definition

Namespace: BeeMobile.SegmentedDisplay
Assembly: BeeMobile.SegmentedDisplay.AVA (in BeeMobile.SegmentedDisplay.AVA.dll) Version: 11.0.0.2+315bba37e2b03f6d3a984dc7af81610a1fb5ada7
C#
protected virtual IList<PolylineGeometry> GenerateSegments(
	bool[] segments,
	Point offset = default
)

Parameters

segments  Boolean
Array of Boolean values which contains an information about visibility of each segment.
offset  Point  (Optional)
Offsets all generated segments by offset specified in this input argument. Default is 0;0

Return Value

IListPolylineGeometry
An IList of PolylineGeometry objects which represent the segments.

Remarks

You can override this method, if you want to customize the shape(s) of segments in SegmentedDisplay.

Exceptions

ArgumentExceptionThrown, if length of segments is NOT exactly 7.

See Also