Class CenterButtonSettings
Defines settings to customize the appearance and behavior of the center button.
Inheritance
Namespace: Syncfusion.Maui.Toolkit.TabView
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class CenterButtonSettings : Element, ITextElement, IThemeElement
Constructors
CenterButtonSettings()
Initializes a new instance of the CenterButtonSettings class.
Declaration
public CenterButtonSettings()
Fields
BackgroundProperty
Identifies the Background bindable property.
Declaration
public static readonly BindableProperty BackgroundProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
CornerRadiusProperty
Identifies the CornerRadius bindable property.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
DisplayModeProperty
Identifies the DisplayMode bindable property.
Declaration
public static readonly BindableProperty DisplayModeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
FontAttributesProperty
Identifies the FontAttributes bindable property.
Declaration
public static readonly BindableProperty FontAttributesProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
FontAutoScalingEnabledProperty
Identifies the FontAutoScalingEnabled bindable property.
Declaration
public static readonly BindableProperty FontAutoScalingEnabledProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
FontFamilyProperty
Identifies the FontFamily bindable property.
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
FontSizeProperty
Identifies the FontSize bindable property.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
HeightProperty
Identifies the Height bindable property.
Declaration
public static readonly BindableProperty HeightProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
ImageSizeProperty
Identifies the ImageSize bindable property.
Declaration
public static readonly BindableProperty ImageSizeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
ImageSourceProperty
Identifies the ImageSource bindable property.
Declaration
public static readonly BindableProperty ImageSourceProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
StrokeProperty
Identifies the Stroke bindable property.
Declaration
public static readonly BindableProperty StrokeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
StrokeThicknessProperty
Identifies the StrokeThickness bindable property.
Declaration
public static readonly BindableProperty StrokeThicknessProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
TextColorProperty
Identifies the TextColor bindable property.
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
TitleProperty
Identifies the Title bindable property.
Declaration
public static readonly BindableProperty TitleProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
WidthProperty
Identifies the Width bindable property.
Declaration
public static readonly BindableProperty WidthProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
Background
Gets or sets a value that can be used to customize the background color of the center button.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | It accepts Brush values. |
CornerRadius
Gets or sets a value that can be used to customize the corner radius of the center button.
Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.CornerRadius | It accepts CornerRadius values, and the default value is 0. |
DisplayMode
Gets or sets a value to choose the display type of the center button.
Declaration
public CenterButtonDisplayMode DisplayMode { get; set; }
Property Value
Type | Description |
---|---|
CenterButtonDisplayMode | It accepts CenterButtonDisplayMode values, and the default value is Text. |
Font
Gets the font of the center button.
Declaration
public Font Font { get; }
Property Value
Type |
---|
Microsoft.Maui.Font |
FontAttributes
Gets or sets font attributes to the center button’s title.
Declaration
public FontAttributes FontAttributes { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.FontAttributes | It accepts FontAttributes values, and the default value is None. |
FontAutoScalingEnabled
Gets or sets a value that determines whether the font of the center button should scale automatically according to the operating system settings.
Declaration
public bool FontAutoScalingEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
FontFamily
Gets or sets font family to the center button’s title.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | It accepts string values, and the default value is null. |
FontSize
Gets or sets a value that can be used to customize the text size of the center button’s title.
Declaration
public double FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts double values, and the default value is 14. |
Height
Gets or sets a value that can be used to adjust the height of the center button.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts the double value, and the default value is 48. |
ImageSize
Gets or sets a value that can be used to customize the image size of the center button.
Declaration
public double ImageSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts double values, and the default value is 20. |
ImageSource
Gets or sets a value that can be used to display image on the center button.
Declaration
public ImageSource ImageSource { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.ImageSource | It accepts the ImageSource value. |
Stroke
Gets or sets a value that can be used to customize the border color of the center button.
Declaration
public Color Stroke { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Graphics.Color | It accepts color values. |
StrokeThickness
Gets or sets a value that can be used to customize the border width of the center button.
Declaration
public double StrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts double values, and the default value is 0. |
TextColor
Gets or sets a value that can be used to customize the text color of the center button.
Declaration
public Color TextColor { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Graphics.Color | It accepts color values. |
Title
Gets or sets a value that can be used to display title on the center button.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | It accepts the string value. |
Width
Gets or sets a value that can be used to adjust the width of the center button.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts the double value, and the default value is 70. |