BaseShellItem.BadgeTextColor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.