menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfBadgeView - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfBadgeView

    Class implementation of badge view control

    Inheritance
    System.Object
    SfBadgeView
    Namespace: Syncfusion.XForms.WPF.BadgeView
    Assembly: Syncfusion.SfBadgeView.XForms.WPF.dll
    Syntax
    public class SfBadgeView : ContentPresenter

    Constructors

    SfBadgeView()

    Initializes a new instance of the SfBadgeView class.

    Declaration
    public SfBadgeView()

    Fields

    BadgeSettingsProperty

    The dependency property of BadgeSettings property.

    Declaration
    public static readonly DependencyProperty BadgeSettingsProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    BadgeTextProperty

    The dependency property of BadgeText property.

    Declaration
    public static readonly DependencyProperty BadgeTextProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ViewProperty

    The dependency property of property.

    Declaration
    public static readonly DependencyProperty ViewProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    BadgeSettings

    Gets or sets the value for badge settings

    Declaration
    public BadgeSetting BadgeSettings { get; set; }
    Property Value
    Type
    BadgeSetting

    BadgeText

    Gets or sets the value for badge text

    Declaration
    public string BadgeText { get; set; }
    Property Value
    Type
    System.String

    View

    Gets or sets the value for content

    Declaration
    public ContentControl View { get; set; }
    Property Value
    Type
    System.Windows.Controls.ContentControl

    Methods

    ArrangeOverride(Size)

    This method is used to arrange the elements added in the badge control.

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

    The final size

    Returns
    Type Description
    System.Windows.Size

    The control size

    MeasureOverride(Size)

    Measure the control size

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

    available size

    Returns
    Type Description
    System.Windows.Size

    control size

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