TickCross
A TickCross control is a binary control. A binary control is initialized via
the IsTrue property. Internally boolean controls still used the Value property
and handle the value as 0 == false , and 100 == true.
Boolean controls show as green in their true state and red in their false view. These
colors are of course customizable as true is not always good, and neither is false always bad (dead == false, works for me every time).
The default view is as follows
In common with all booleans controls TickCross has the following properties that can be set
- IsTrue
- FalseColor
- TrueColor
As already mentioned the IsTrue property is a convienience property for setting the Value, The TrueColor and FalseColors are
Color points as described here
see Dial360.
We set the colors for true and false in the same way that we did for the RoundLed
so check that out.
Here we will limit ourselves to presenting the XAML and the corresponding visuals
<db:TickCross Width="16" Height="16" >
<db:BinaryDashboard.TrueColor>
<db:ColorPoint HiColor="#777777" LowColor="#33ff33" Value="9" />
</db:BinaryDashboard.TrueColor>
<db:BinaryDashboard.FalseColor>
<db:ColorPoint HiColor="#666666" LowColor="#999999" Value="9" />
</db:BinaryDashboard.FalseColor>
</db:TickCross>
|
|