BaseShellItem.BadgeTextColor Property

Definition

Gets or sets the foreground (text) color of the badge displayed on this Shell navigation item. When set to null, the platform default text color is used (typically white). This is a bindable property.

public:
 property Microsoft::Maui::Graphics::Color ^ BadgeTextColor { Microsoft::Maui::Graphics::Color ^ get(); void set(Microsoft::Maui::Graphics::Color ^ value); };
public Microsoft.Maui.Graphics.Color BadgeTextColor { get; set; }
member this.BadgeTextColor : Microsoft.Maui.Graphics.Color with get, set
Public Property BadgeTextColor As Color

Property Value

Remarks

Platform support:

  • Android: Maps to BadgeDrawable.BadgeTextColor.
  • iOS/MacCatalyst: Maps to UITabBarItem.SetBadgeTextAttributes.
  • Windows: Maps to InfoBadge.Foreground.

Applies to