Class
RadBadge

A content control which is attached to an element and usually displays a status, warning, note, count information related to the attached element.

Definition

Namespace:Telerik.UI.Xaml.Controls.Primitives

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadBadge : RadContentControl

Inheritance: objectRadContentControlRadBadge

Inherited Members RadContentControl.IsFocusedPropertyRadContentControl.BeginVisualStateUpdate()RadContentControl.EndVisualStateUpdate(bool, bool)RadContentControl.UpdateVisualState(bool)RadContentControl.SetVisualState(string, bool)RadContentControl.CanUpdateVisualState()RadContentControl.OnUnloaded(object, RoutedEventArgs)RadContentControl.ComposeVisualStateName()RadContentControl.OnGotFocus(RoutedEventArgs)RadContentControl.OnLostFocus(RoutedEventArgs)RadContentControl.GetTemplatePart<T>(string, bool)RadContentControl.CurrentVisualStateRadContentControl.IsLoadedRadContentControl.IsTemplateAppliedRadContentControl.IsFocusedRadContentControl.IsProperlyTemplated

Constructors

RadBadge()

Initializes a new instance of the RadBadge class.

Declaration

cs-api-definition
public RadBadge()

Fields

BadgeTypeProperty

Identifies the BadgeType dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty BadgeTypeProperty

Field Value

DependencyProperty

GeometryProperty

Identifies the Geometry dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GeometryProperty

Field Value

DependencyProperty

InheritDataContextProperty

Identifies the InheritDataContext dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty InheritDataContextProperty

Field Value

DependencyProperty

PlayChangeAnimationCommandProperty

Identifies the PlayChangeAnimationCommand dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PlayChangeAnimationCommandProperty

Field Value

DependencyProperty

StrokeDashArrayProperty

Identifies the StrokeDashArray dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StrokeDashArrayProperty

Field Value

DependencyProperty

StrokeProperty

Identifies the Stroke dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StrokeProperty

Field Value

DependencyProperty

StrokeThicknessProperty

Identifies the StrokeThickness dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StrokeThicknessProperty

Field Value

DependencyProperty

TextAlignmentProperty

Identifies the TextAlignment dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextAlignmentProperty

Field Value

DependencyProperty

Properties

BadgeType

Gets or sets the badge type.

Declaration

cs-api-definition
public BadgeType BadgeType { get; set; }

Property Value

BadgeType

Geometry

Gets or sets the geometry of the badge.

Declaration

cs-api-definition
public Geometry Geometry { get; set; }

Property Value

Geometry

InheritDataContext

Gets or sets a value indicating whether the badge should take the data context from its target element.

Declaration

cs-api-definition
public bool InheritDataContext { get; set; }

Property Value

bool

PlayChangeAnimationCommand

Gets or sets the PlayChangeAnimation command.

Declaration

cs-api-definition
public DelegateCommand PlayChangeAnimationCommand { get; set; }

Property Value

DelegateCommand

Stroke

Gets or sets the Stroke of the Geometry of the Badge control.

Declaration

cs-api-definition
public Brush Stroke { get; set; }

Property Value

Brush

StrokeDashArray

Gets or sets the stroke dash array of the badge.

Declaration

cs-api-definition
public DoubleCollection StrokeDashArray { get; set; }

Property Value

DoubleCollection

StrokeThickness

Gets or sets the stroke thickness of the badge.

Declaration

cs-api-definition
public double StrokeThickness { get; set; }

Property Value

double

TextAlignment

Gets or sets the text alignment of the underlying TextBlock.

Declaration

cs-api-definition
public TextAlignment TextAlignment { get; set; }

Property Value

TextAlignment

Methods

MeasureOverride(Size)

Declaration

cs-api-definition
protected override Size MeasureOverride(Size constraint)

Parameters

constraint

Size

Returns

Size

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration

cs-api-definition
protected override void OnApplyTemplate()

Overrides RadContentControl.OnApplyTemplate()

OnChangeAnimationRequested()

Called when change animation is about to play.

Declaration

cs-api-definition
protected virtual void OnChangeAnimationRequested()

OnContentChanged(object, object)

Declaration

cs-api-definition
protected override void OnContentChanged(object oldContent, object newContent)

Parameters

oldContent

object

newContent

object

OnContentTemplateChanged(DataTemplate, DataTemplate)

Declaration

cs-api-definition
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)

Parameters

oldContentTemplate

DataTemplate

newContentTemplate

DataTemplate

OnCreateAutomationPeer()

Creates a RadBadgeAutomationPeer.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadContentControl.OnCreateAutomationPeer()

OnLoadAnimationRequested()

Called when play animation is about to play.

Declaration

cs-api-definition
protected virtual void OnLoadAnimationRequested()

OnLoaded(object, RoutedEventArgs)

Occurs when a System.Windows.FrameworkElement has been constructed and added to the object tree.

Declaration

cs-api-definition
protected override void OnLoaded(object sender, RoutedEventArgs e)

Parameters

sender

object

e

RoutedEventArgs

Overrides RadContentControl.OnLoaded(object, RoutedEventArgs)