.NET, WPF, DXGauges for WPF
C#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CS Source auto update [skip ci] Jun 20, 2018
VB Source auto update [skip ci] Jun 20, 2018
.gitattributes initial commit Apr 23, 2018
.gitignore initial commit Apr 23, 2018
LICENSE initial commit Apr 23, 2018
Readme.md initial commit Apr 23, 2018
config.json initial commit Apr 23, 2018

Readme.md

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.