Files to look at:
- MainPage.xaml (VB: MainPage.xaml)
How to use custom symbol mapping in the Digital Gauge control
This example demonstrates how to display custom characters on a Digital Gauge control. This is done via the Custom Symbol Mapping feature that defines which segments should be activated for every custom character.
In this sample we will display "HELLO." using the 7 Segment View type. Note that by default these characters can't be displayed in this view (because 7 segments are not enough to provide unique representations for all Latin characters), but some characters can be efficiently displayed via custom symbol mapping.
Description
For this, it is necessary to use the SymbolSegmentsMapping.SegmentsStates property to specify appropriate segment states for every desired character. In our case, these will be the following characters: "H", "E", "L", "O", "." Note that for the dot character we set the SymbolType property value to Additional, so that it will be displayed in the same segment with the previous character.
Then we specify the text that should be displayed on the segments panel via the DigitalGaugeControl.Text property.