Back to Devexpress

Badge Members

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

latest35.4 KB
Original Source

Badge Members

The Badge control displays a text in a badge over a visual element.

Constructors

NameDescription
Badge()Initializes a new instance of the Badge class.

Fields

NameDescription
AnimationDurationProperty staticIdentifies the Badge.AnimationDuration dependency property.
BackgroundProperty staticIdentifies the Badge.BackgroundProperty dependency property.
BadgeKindProperty staticIdentifies the Badge.BadgeKind dependency property.
BadgeProperty staticIdentifies the Badge.Badge attached property.
BadgeShapeProperty staticIdentifies the Badge.BadgeShape dependency property.
BorderBrushProperty staticIdentifies the Badge.BorderBrush dependency property.
BorderThicknessProperty staticIdentifies the Badge.BorderThickness dependency property.
ContentFormatProviderProperty staticIdentifies the Badge.ContentFormatProvider dependency property.
ContentProperty staticIdentifies the Badge.Content dependency property.
ContentStringFormatProperty staticIdentifies the Badge.ContentStringFormat dependency property.
ContentTemplateProperty staticIdentifies the Badge.ContentTemplate dependency property.
ContentTemplateSelectorProperty staticIdentifies the Badge.ContentTemplateSelector dependency property.
CornerRadiusProperty staticIdentifies the Badge.CornerRadius dependency property.
FontFamilyProperty staticIdentifies the Badge.FontFamily dependency property.
FontSizeProperty staticIdentifies the Badge.FontSize dependency property.
FontStretchProperty staticIdentifies the Badge.FontSize dependency property.
FontStyleProperty staticIdentifies the Badge.FontSize dependency property.
FontWeightProperty staticIdentifies the Badge.FontWeight dependency property.
ForegroundProperty staticIdentifies the Badge.Foreground dependency property.
HeightProperty staticIdentifies the Badge.Height dependency property.
HorizontalAlignmentProperty staticIdentifies the Badge.HorizontalAlignment dependency property.
HorizontalAnchorProperty staticIdentifies the Badge.HorizontalAnchor dependency property.
HorizontalContentAlignmentProperty staticIdentifies the Badge.HorizontalContentAlignment dependency property.
MarginProperty staticIdentifies the Badge.Margin dependency property.
MaxHeightProperty staticIdentifies the Badge.MaxHeight dependency property.
MaxWidthProperty staticIdentifies the Badge.MaxWidth dependency property.
MinHeightProperty staticIdentifies the Badge.MinHeight dependency property.
MinWidthProperty staticIdentifies the Badge.MinWidth dependency property.
OpacityProperty staticIdentifies the Badge.Opacity dependency property.
PaddingProperty staticIdentifies the Badge.Padding dependency property.
TemplateProperty staticIdentifies the Badge.Template dependency property.
VerticalAlignmentProperty staticIdentifies the Badge.VerticalAlignment dependency property.
VerticalAnchorProperty staticIdentifies the Badge.VerticalAnchor dependency property.
VerticalContentAlignmentProperty staticIdentifies the Badge.VerticalContentAlignment dependency property.
VisibilityProperty staticIdentifies the Badge.Visibility dependency property.
WidthProperty staticIdentifies the Badge.Width dependency property.

Properties

NameDescription
AnimationDurationGet or sets the BadgeControl‘s fade-in and fade-out animation duration. This is a dependency property.
BackgroundGets or sets the brush used to paint the BadgeControl‘s background. This is a dependency property.
BadgeKindGets or sets the BadgeControl‘s kind. This is a dependency property.
BadgeShapeGets or sets the BadgeControl‘s shape. This is a dependency property.
BorderBrushGets or sets the brush used to paint the borders of the BadgeControl. This is a dependency property.
BorderThicknessGets or sets the thickness of the BadgeControl‘s border. This is a dependency property.
CanFreezeGets a value that indicates whether the object can be made unmodifiable. Inherited from Freezable.
ContentGets or sets the badge’s content. This is a dependency property.
ContentFormatProviderGets or sets the format provider to format the BadgeControl‘s content. This is a dependency property.
ContentStringFormatGets 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.
ContentTemplateGets or sets the template used to display the badge’s Badge.Content. This is a dependency property.
ContentTemplateSelectorGets or sets an object that chooses the Badge.ContentTemplate based on custom logic. This is a dependency property.
CornerRadiusGets or sets the BadgeControl‘s corner radius. This is a dependency property.
DependencyObjectTypeGets the DependencyObjectType that wraps the CLR type of this instance. Inherited from DependencyObject.
DispatcherGets the Dispatcher this DispatcherObject is associated with. Inherited from DispatcherObject.
FontFamilyGets or sets the BadgeControl‘s font family. This is a dependency property.
FontSizeGets or sets the font size for the BadgeControl‘s text. This is a dependency property.
FontStretchGets or sets the Badge’s font stretch. This is a dependency property.
FontStyleGets or sets the badge font style. This is a dependency property.
FontWeightGets or sets the BadgeControl‘s font weight. This is a dependency property.
ForegroundGets or sets the brush used to paint the BadgeControl‘s foreground. This is a dependency property.
HeightGets or sets the BadgeControl‘s height. This is a dependency property.
HorizontalAlignmentGets or sets the BadgeControl‘s horizontal alignment. This is a dependency property.
HorizontalAnchorGets or sets a BadgeControl‘s horizontal anchor point. This is a dependency property.
HorizontalContentAlignmentGets or sets the content’s horizontal alignment within the BadgeControl container. This is a dependency property.
IsFrozenGets a value that indicates whether the object is currently modifiable. Inherited from Freezable.
IsSealedGets a value that indicates whether this instance is currently sealed (read-only). Inherited from DependencyObject.
MarginGets or sets the outer indents around the BadgeControl. This is a dependency property.
MaxHeightGets or sets the BadgeControl‘s maximum height. This is a dependency property.
MaxWidthGets or sets the BadgeControl‘s maximum width. This is a dependency property.
MinHeightGets or sets the BadgeControl‘s minimum height. This is a dependency property.
MinWidthGets or sets the BadgeControl‘s minimum width. This is a dependency property.
OpacityGets or sets the opacity factor applied to the BadgeControl. This is a dependency property.
PaddingGets or sets the inner indents around the BadgeControl. This is a dependency property.
TemplateGets or sets the template that defines the BadgeControl‘s content presentation. This is a dependency property.
VerticalAlignmentGets or sets the BadgeControl‘s vertical alignment. This is a dependency property.
VerticalAnchorGets or sets a BadgeControl‘s vertical anchor point. This is a dependency property.
VerticalContentAlignmentGets or sets the content’s vertical alignment within the BadgeControl container. This is a dependency property.
VisibilityGets or sets the BadgeControl‘s visibility. This is a dependency property.
WidthGets or sets the BadgeControl‘s width. This is a dependency property.

Methods

NameDescription
CheckAccess()Determines whether the calling thread has access to this DispatcherObject. Inherited from DispatcherObject.
ClearValue(DependencyProperty)Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. Inherited from DependencyObject.
ClearValue(DependencyPropertyKey)Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. Inherited from DependencyObject.
Clone()Creates a modifiable clone of the Freezable, making deep copies of the object’s values. When copying the object’s dependency properties, this method copies expressions (which might no longer resolve) but not animations or their current values. Inherited from Freezable.
CloneCore(Freezable) protectedMakes the instance a clone (deep copy) of the specified Freezable using base (non-animated) property values. Inherited from Freezable.
CloneCurrentValue()Creates a modifiable clone (deep copy) of the Freezable using its current values. Inherited from Freezable.
CloneCurrentValueCore(Freezable) protectedMakes the instance a modifiable clone (deep copy) of the specified Freezable using current property values. Inherited from Freezable.
CoerceValue(DependencyProperty)Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. Inherited from DependencyObject.
CreateInstance() protectedInitializes a new instance of the Freezable class. Inherited from Freezable.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether a provided DependencyObject is equivalent to the current DependencyObject. Inherited from DependencyObject.
Freeze()Makes the current object unmodifiable and sets its IsFrozen property to true. Inherited from Freezable.
Freeze(Freezable, Boolean) protected staticIf the isChecking parameter is true, this method indicates whether the specified Freezable can be made unmodifiable. If the isChecking parameter is false, this method attempts to make the specified Freezable unmodifiable and indicates whether the operation succeeded. Inherited from Freezable.
FreezeCore(Boolean) protectedMakes the Freezable object unmodifiable or tests whether it can be made unmodifiable. Inherited from Freezable.
GetAsFrozen()Creates a frozen copy of the Freezable, using base (non-animated) property values. Because the copy is frozen, any frozen sub-objects are copied by reference. Inherited from Freezable.
GetAsFrozenCore(Freezable) protectedMakes the instance a frozen clone of the specified Freezable using base (non-animated) property values. Inherited from Freezable.
GetBadge(DependencyObject) staticGets the value of the Badge.Badge attached property to a specified DependencyObject.
GetCurrentValueAsFrozen()Creates a frozen copy of the Freezable using current property values. Because the copy is frozen, any frozen sub-objects are copied by reference. Inherited from Freezable.
GetCurrentValueAsFrozenCore(Freezable) protectedMakes the current instance a frozen clone of the specified Freezable. If the object has animated dependency properties, their current animated values are copied. Inherited from Freezable.
GetHashCode()Gets a hash code for this DependencyObject. Inherited from DependencyObject.
GetLocalValueEnumerator()Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. Inherited from DependencyObject.
GetType()Gets the Type of the current instance. Inherited from Object.
GetValue(DependencyProperty)Returns the current effective value of a dependency property on this instance of a DependencyObject. Inherited from DependencyObject.
InvalidateProperty(DependencyProperty)Re-evaluates the effective value for the specified dependency property. Inherited from DependencyObject.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
OnChanged() protectedCalled when the current Freezable object is modified. Inherited from Freezable.
OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty) protectedThis member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. Inherited from Freezable.
OnFreezablePropertyChanged(DependencyObject, DependencyObject) protectedEnsures that appropriate context pointers are established for a DependencyObjectType data member that has just been set. Inherited from Freezable.
OnPropertyChanged(DependencyPropertyChangedEventArgs) protectedOverrides the DependencyObject implementation of OnPropertyChanged(DependencyPropertyChangedEventArgs) to also invoke any Changed handlers in response to a changing dependency property of type Freezable. Inherited from Freezable.
ReadLocalValue(DependencyProperty)Returns the local value of a dependency property, if it exists. Inherited from DependencyObject.
ReadPreamble() protectedEnsures that the Freezable is being accessed from a valid thread. Inheritors of Freezable must call this method at the beginning of any API that reads data members that are not dependency properties. Inherited from Freezable.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
SetBadge(DependencyObject, Badge) staticSets the value of the Badge.Badge attached property to a specified DependencyObject.
SetCurrentValue(DependencyProperty, Object)Sets the value of a dependency property without changing its value source. Inherited from DependencyObject.
SetValue(DependencyProperty, Object)Sets the local value of a dependency property, specified by its dependency property identifier. Inherited from DependencyObject.
SetValue(DependencyPropertyKey, Object)Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. Inherited from DependencyObject.
ShouldSerializeProperty(DependencyProperty) protectedReturns a value that indicates whether serialization processes should serialize the value for the provided dependency property. Inherited from DependencyObject.
ToString()Returns a string that represents the current object. Inherited from Object.
VerifyAccess()Enforces that the calling thread has access to this DispatcherObject. Inherited from DispatcherObject.
WritePostscript() protectedRaises the Changed event for the Freezable and invokes its OnChanged() method. Classes that derive from Freezable should call this method at the end of any API that modifies class members that are not stored as dependency properties. Inherited from Freezable.
WritePreamble() protectedVerifies that the Freezable is not frozen and that it is being accessed from a valid threading context. Freezable inheritors should call this method at the beginning of any API that writes to data members that are not dependency properties. Inherited from Freezable.

Events

NameDescription
ChangedOccurs when the Freezable or an object it contains is modified. Inherited from Freezable.
CustomPlacementOccurs when a Badge is arranged.

Attached Properties

NameDescription
Badge staticGets or sets the BadgeControl. This is an attached property.

See Also

Badge Class

DevExpress.Xpf.Core Namespace