Badge Members
The Badge control displays a text in a badge over a visual element.Fields
| Name | Description |
|---|---|
| AnimationDurationProperty static | Identifies the Badge.AnimationDuration dependency property. |
| BackgroundProperty static | Identifies the Badge.BackgroundProperty dependency property. |
| BadgeKindProperty static | Identifies the Badge.BadgeKind dependency property. |
| BadgeProperty static | Identifies the Badge.Badge attached property. |
| BadgeShapeProperty static | Identifies the Badge.BadgeShape dependency property. |
| BorderBrushProperty static | Identifies the Badge.BorderBrush dependency property. |
| BorderThicknessProperty static | Identifies the Badge.BorderThickness dependency property. |
| ContentFormatProviderProperty static | Identifies the Badge.ContentFormatProvider dependency property. |
| ContentProperty static | Identifies the Badge.Content dependency property. |
| ContentStringFormatProperty static | Identifies the Badge.ContentStringFormat dependency property. |
| ContentTemplateProperty static | Identifies the Badge.ContentTemplate dependency property. |
| ContentTemplateSelectorProperty static | Identifies the Badge.ContentTemplateSelector dependency property. |
| CornerRadiusProperty static | Identifies the Badge.CornerRadius dependency property. |
| FontFamilyProperty static | Identifies the Badge.FontFamily dependency property. |
| FontSizeProperty static | Identifies the Badge.FontSize dependency property. |
| FontStretchProperty static | Identifies the Badge.FontSize dependency property. |
| FontStyleProperty static | Identifies the Badge.FontSize dependency property. |
| FontWeightProperty static | Identifies the Badge.FontWeight dependency property. |
| ForegroundProperty static | Identifies the Badge.Foreground dependency property. |
| HeightProperty static | Identifies the Badge.Height dependency property. |
| HorizontalAlignmentProperty static | Identifies the Badge.HorizontalAlignment dependency property. |
| HorizontalAnchorProperty static | Identifies the Badge.HorizontalAnchor dependency property. |
| HorizontalContentAlignmentProperty static | Identifies the Badge.HorizontalContentAlignment dependency property. |
| MarginProperty static | Identifies the Badge.Margin dependency property. |
| MaxHeightProperty static | Identifies the Badge.MaxHeight dependency property. |
| MaxWidthProperty static | Identifies the Badge.MaxWidth dependency property. |
| MinHeightProperty static | Identifies the Badge.MinHeight dependency property. |
| MinWidthProperty static | Identifies the Badge.MinWidth dependency property. |
| OpacityProperty static | Identifies the Badge.Opacity dependency property. |
| PaddingProperty static | Identifies the Badge.Padding dependency property. |
| TemplateProperty static | Identifies the Badge.Template dependency property. |
| VerticalAlignmentProperty static | Identifies the Badge.VerticalAlignment dependency property. |
| VerticalAnchorProperty static | Identifies the Badge.VerticalAnchor dependency property. |
| VerticalContentAlignmentProperty static | Identifies the Badge.VerticalContentAlignment dependency property. |
| VisibilityProperty static | Identifies the Badge.Visibility dependency property. |
| WidthProperty static | Identifies the Badge.Width dependency property. |
Properties
| Name | Description |
|---|---|
| AnimationDuration | Get or sets the BadgeControl‘s fade-in and fade-out animation duration. This is a dependency property. |
| Background | Gets or sets the brush used to paint the BadgeControl‘s background. This is a dependency property. |
| BadgeKind | Gets or sets the BadgeControl‘s kind. This is a dependency property. |
| BadgeShape | Gets or sets the BadgeControl‘s shape. This is a dependency property. |
| BorderBrush | Gets or sets the brush used to paint the borders of the BadgeControl. This is a dependency property. |
| BorderThickness | Gets or sets the thickness of the BadgeControl‘s border. This is a dependency property. |
| Content | Gets or sets the badge’s content. This is a dependency property. |
| ContentFormatProvider | Gets or sets the format provider to format the BadgeControl‘s content. This is a dependency property. |
| ContentStringFormat | Gets or sets a composite string that specifies how to format the Content property if it is displayed as a string. This is a dependency property. |
| ContentTemplate | Gets or sets the template used to display the badge’s Badge.Content. This is a dependency property. |
| ContentTemplateSelector | Gets or sets an object that chooses the Badge.ContentTemplate based on custom logic. This is a dependency property. |
| CornerRadius | Gets or sets the BadgeControl‘s corner radius. This is a dependency property. |
| FontFamily | Gets or sets the BadgeControl‘s font family. This is a dependency property. |
| FontSize | Gets or sets the font size for the BadgeControl‘s text. This is a dependency property. |
| FontStretch | Gets or sets the Badge’s font stretch. This is a dependency property. |
| FontStyle | Gets or sets the badge font style. This is a dependency property. |
| FontWeight | Gets or sets the BadgeControl‘s font weight. This is a dependency property. |
| Foreground | Gets or sets the brush used to paint the BadgeControl‘s foreground. This is a dependency property. |
| Height | Gets or sets the BadgeControl‘s height. This is a dependency property. |
| HorizontalAlignment | Gets or sets the BadgeControl‘s horizontal alignment. This is a dependency property. |
| HorizontalAnchor | Gets or sets a BadgeControl‘s horizontal anchor point. This is a dependency property. |
| HorizontalContentAlignment | Gets or sets the content’s horizontal alignment within the BadgeControl container. This is a dependency property. |
| Margin | Gets or sets the outer indents around the BadgeControl. This is a dependency property. |
| MaxHeight | Gets or sets the BadgeControl‘s maximum height. This is a dependency property. |
| MaxWidth | Gets or sets the BadgeControl‘s maximum width. This is a dependency property. |
| MinHeight | Gets or sets the BadgeControl‘s minimum height. This is a dependency property. |
| MinWidth | Gets or sets the BadgeControl‘s minimum width. This is a dependency property. |
| Opacity | Gets or sets the opacity factor applied to the BadgeControl. This is a dependency property. |
| Padding | Gets or sets the inner indents around the BadgeControl. This is a dependency property. |
| Template | Gets or sets the template that defines the BadgeControl‘s content presentation. This is a dependency property. |
| VerticalAlignment | Gets or sets the BadgeControl‘s vertical alignment. This is a dependency property. |
| VerticalAnchor | Gets or sets a BadgeControl‘s vertical anchor point. This is a dependency property. |
| VerticalContentAlignment | Gets or sets the content’s vertical alignment within the BadgeControl container. This is a dependency property. |
| Visibility | Gets or sets the BadgeControl‘s visibility. This is a dependency property. |
| Width | Gets or sets the BadgeControl‘s width. This is a dependency property. |
Methods
| Name | Description |
|---|---|
| GetBadge(DependencyObject) static | Gets the value of the Badge.Badge attached property to a specified DependencyObject. |
| SetBadge(DependencyObject, Badge) static | Sets the value of the Badge.Badge attached property to a specified DependencyObject. |
Events
| Name | Description |
|---|---|
| CustomPlacement | Occurs when a Badge is arranged. |
Attached Properties
| Name | Description |
|---|---|
| Badge static | Gets or sets the BadgeControl. This is an attached property. |
See Also