ClassRadBadge
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:
public class RadBadge : RadContentControl
Inheritance: objectRadContentControlRadBadge
Inherited Members
Constructors
RadBadge()
Initializes a new instance of the RadBadge class.
Declaration
public RadBadge()
Fields
BadgeTypeProperty
Identifies the BadgeType dependency property.
Declaration
public static readonly DependencyProperty BadgeTypeProperty
Field Value
DependencyProperty
GeometryProperty
Identifies the Geometry dependency property.
Declaration
public static readonly DependencyProperty GeometryProperty
Field Value
DependencyProperty
InheritDataContextProperty
Identifies the InheritDataContext dependency property.
Declaration
public static readonly DependencyProperty InheritDataContextProperty
Field Value
DependencyProperty
PlayChangeAnimationCommandProperty
Identifies the PlayChangeAnimationCommand dependency property.
Declaration
public static readonly DependencyProperty PlayChangeAnimationCommandProperty
Field Value
DependencyProperty
StrokeDashArrayProperty
Identifies the StrokeDashArray dependency property.
Declaration
public static readonly DependencyProperty StrokeDashArrayProperty
Field Value
DependencyProperty
StrokeProperty
Identifies the Stroke dependency property.
Declaration
public static readonly DependencyProperty StrokeProperty
Field Value
DependencyProperty
StrokeThicknessProperty
Identifies the StrokeThickness dependency property.
Declaration
public static readonly DependencyProperty StrokeThicknessProperty
Field Value
DependencyProperty
TextAlignmentProperty
Identifies the TextAlignment dependency property.
Declaration
public static readonly DependencyProperty TextAlignmentProperty
Field Value
DependencyProperty
Properties
BadgeType
Gets or sets the badge type.
Geometry
Gets or sets the geometry of the badge.
Declaration
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.
PlayChangeAnimationCommand
Gets or sets the PlayChangeAnimation command.
Declaration
public DelegateCommand PlayChangeAnimationCommand { get; set; }
Property Value
Stroke
Gets or sets the Stroke of the Geometry of the Badge control.
Declaration
public Brush Stroke { get; set; }
Property Value
Brush
StrokeDashArray
Gets or sets the stroke dash array of the badge.
Declaration
public DoubleCollection StrokeDashArray { get; set; }
Property Value
DoubleCollection
StrokeThickness
Gets or sets the stroke thickness of the badge.
TextAlignment
Gets or sets the text alignment of the underlying TextBlock.
Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
TextAlignment
Methods
MeasureOverride(Size)
Declaration
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
protected override void OnApplyTemplate()
Overrides
OnChangeAnimationRequested()
Called when change animation is about to play.
Declaration
protected virtual void OnChangeAnimationRequested()
OnContentTemplateChanged(DataTemplate, DataTemplate)
Declaration
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
Parameters
oldContentTemplate
DataTemplate
newContentTemplate
DataTemplate
OnCreateAutomationPeer()
Creates a RadBadgeAutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnLoadAnimationRequested()
Called when play animation is about to play.
Declaration
protected virtual void OnLoadAnimationRequested()
OnLoaded(object, RoutedEventArgs)
Occurs when a System.Windows.FrameworkElement has been constructed and added to the object tree.
Declaration
protected override void OnLoaded(object sender, RoutedEventArgs e)
Parameters
sender
e
RoutedEventArgs
Overrides