WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BadgeAdorner - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BadgeAdorner

    Represents a adorner class that is used to display the badge notification for the controls.

    Inheritance
    System.Object
    BadgeAdorner
    Namespace: Syncfusion.Windows.Controls.Notification
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class BadgeAdorner : Adorner

    Constructors

    BadgeAdorner(UIElement)

    Initializes a new instance of the BadgeAdorner class.

    Declaration
    public BadgeAdorner(UIElement uiElement)
    Parameters
    Type Name Description
    System.Windows.UIElement uiElement

    UIElement that need to be added to the UI.

    Properties

    VisualChildrenCount

    Gets the number of visual elements within this element.

    Declaration
    protected override int VisualChildrenCount { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    ArrangeOverride(Size)

    Positions Badge control within the Adorned element.

    Declaration
    protected override Size ArrangeOverride(Size finalSize)
    Parameters
    Type Name Description
    System.Windows.Size finalSize

    Available size within which badge control need to be positioned.

    Returns
    Type Description
    System.Windows.Size

    Actual size of the badge control.

    GetVisualChild(Int32)

    Returns a child at the specified index from a collection of child elements.

    Declaration
    protected override Visual GetVisualChild(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Index of the child element in the collection.

    Returns
    Type Description
    System.Windows.Media.Visual

    FrameworkElement added to the UI.

    MeasureOverride(Size)

    Measure the size in layout required for Badge control.

    Declaration
    protected override Size MeasureOverride(Size constraint)
    Parameters
    Type Name Description
    System.Windows.Size constraint

    Available size.

    Returns
    Type Description
    System.Windows.Size

    Desired size of the Badge control.

    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved