namespace WPFluent.Controls; /// /// Used to highlight an item, attract attention or flag status. /// /// /// /// <ui:Badge Appearance="Secondary"> /// <TextBox Text="Hello" /> /// /// </ui:Badge> /// /// public class Badge : System.Windows.Controls.ContentControl, IAppearanceControl { /// /// Identifies the dependency property. /// public static readonly DependencyProperty AppearanceProperty = DependencyProperty.Register( nameof(Appearance), typeof(Controls.ControlAppearance), typeof(Badge), new PropertyMetadata(Controls.ControlAppearance.Primary)); /// public Controls.ControlAppearance Appearance { get => (Controls.ControlAppearance)GetValue(AppearanceProperty); set => SetValue(AppearanceProperty, value); } }