Skip to content

Controls.Baged

mameolan edited this page May 17, 2020 · 2 revisions

Badged

alt text

Description

Badge is a controls which surrounds the content with a badge.

Original Author(s)

Status of implementation

Done.

Example

<Controls:Badged Badge="Message">
     <Controls:MetroButton Content="Press Me"/>
</Controls:Badged>

Important Properties

Type Property Name Description
object Badge Gets or sets the Badge content to display.
IBrush BadgeBackground Gets or sets the background brush for the Badge.
IBrush BadgeForeground Gets or sets the foreground brush for the Badge.
BadgePlacementMode BadgePlacementMode Gets or sets the placement of the Badge relative to its content.
Thickness BadgeMargin Gets or sets a margin which can be used to make minor adjustments to the placement of the Badge.
bool IsBadgeSet Indicates whether the Badge has content to display.
EventHandler BadgeChanged event handler if badge changed
Clone this wiki locally