Back to Devexpress

Badge.Badge Attached Property

wpf-devexpress-dot-xpf-dot-core-dot-badge.md

latest1.3 KB
Original Source

Badge.Badge Attached Property

Gets or sets the BadgeControl. This is an attached property.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetBadge(DependencyObject) and SetBadge(DependencyObject, Badge).

Returns

TypeDescription
Badge

The badge.

|

Remarks

The following code sample displays a Badge over the Button :

xaml
<Window x:Class="WPFApp.MainWindow"
  ....
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">
  <Button Content="Inbox">
    <dx:Badge.Badge>
        <dx:Badge Content="10"/>
    </dx:Badge.Badge>
  </Button>
</Window>

See Also

Badge Class

Badge Members

DevExpress.Xpf.Core Namespace