DecadeVduMeter
The decade VDU meter is a modeled on the meters on good old cassette players of the eighties. It is
shown in it's basic form below
The display consists of ten individual LEDs that are animated to show the current value
and a text indicator of the value. The
main page contains a description of how to set the value in code, markup or via a
data binding.
The meter can be configured via C# code or XAML to set colours. There are three main colors to
speficy
- The border around an LED, this is the same color regardless of the on / off state of the LED
- The on color of the LED (Default bright green)
- The off color of a LED (Default dark green)
Let's look at setting the three colours
| |
We can set the border color using the unsurprisingly named BorderColor property. The Led on and off color
properties (in a similar vein of creativity) are name LedOnColor and LedOffColor. In XAML this is marked up as:
<db:DecadeVuMeter
BorderColor="#FF412B6D"
LedOnColor= "#FF614B8D"
LedOffColor="#FF110B3D"
/>
|
And there you have it: not the worlds most complex control. But useful all the same