SegmentedDisplay Class
Represents a control which renders a segmented display to its client area.
Namespace: BeeMobile.SegmentedDisplayAssembly: BeeMobile.SegmentedDisplay.AVA (in BeeMobile.SegmentedDisplay.AVA.dll) Version: 11.0.0.2+315bba37e2b03f6d3a984dc7af81610a1fb5ada7
public class SegmentedDisplay : TemplatedControl
type SegmentedDisplay =
class
inherit TemplatedControl
end
- Inheritance
- Object AvaloniaObject Animatable StyledElement Visual Layoutable Interactive InputElement Control TemplatedControl SegmentedDisplay
Segmented Display can be used to display numbers in a unique old-school way, seemingly as if they were displayed by a segmented display.
Except of standard digits from 0 to 9, it is also capable to rendering a space character, decimal point, negative number sign and a colon.
| DigitsDistance |
Gets or sets how much distance should be kept in between every two digits.
|
| Text |
Gets or sets the text displayed by SegmentedDisplay.
|
| GenerateSegments |
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
|
| InitializeComponent |
Wires up the controls and optionally loads XAML markup and attaches dev tools (if Avalonia.Diagnostics package is referenced).
|
| Render |
Performs rendering of this Visual to its DrawingContext.
(Overrides Visual.Render(DrawingContext)) |