-
Notifications
You must be signed in to change notification settings - Fork 3
Counters
Goverman edited this page Jul 1, 2025
·
2 revisions
Counters are simple badge-like components that can be used to display an integer number. They can for example be used to let the user quickly see the amount of content in a menu item.
The display value of the counter can be set with the Value
property. Optionally, a secondary counter can be shown by setting Mode=Double
. The secondary counter can be set with the SecondaryValue
property. An Urgent style can also be set for each counter by setting IsUrgent
or IsSecondaryUrgent
to True
.
<dui:ListItem Title="Counter">
<dui:Counter Value="5"
SecondaryValue="2"
IsSecondaryUrgent="True"/>
</dui:ListItem>
You can set the secondary counter to only be displayed when SecondaryValue
is not equal to zero. This can be done by setting Mode=Auto
.