Class PickerFooterView
Represents a class which is used to customize all the properties of footer view of the SfPicker.
Inheritance
Namespace: Syncfusion.Maui.Toolkit.Picker
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class PickerFooterView : Element
Constructors
PickerFooterView()
Declaration
public PickerFooterView()
Fields
BackgroundProperty
Identifies the Background dependency property.
Declaration
public static readonly BindableProperty BackgroundProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Background dependency property. |
CancelButtonTextProperty
Identifies the CancelButtonText dependency property.
Declaration
public static readonly BindableProperty CancelButtonTextProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for CancelButtonText dependency property. |
DividerColorProperty
Identifies the DividerColor dependency property.
Declaration
public static readonly BindableProperty DividerColorProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for DividerColor dependency property. |
HeightProperty
Identifies the Height dependency property.
Declaration
public static readonly BindableProperty HeightProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Height dependency property. |
OkButtonTextProperty
Identifies the OkButtonText dependency property.
Declaration
public static readonly BindableProperty OkButtonTextProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for OkButtonText dependency property. |
ShowOkButtonProperty
Identifies the ShowOkButton dependency property.
Declaration
public static readonly BindableProperty ShowOkButtonProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for ShowOkButton dependency property. |
TextStyleProperty
Identifies the TextStyle dependency property.
Declaration
public static readonly BindableProperty TextStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for TextStyle dependency property. |
Properties
Background
Gets or sets the background of the footer view in SfPicker.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default value of Background is Brush.Transparent. |
Examples
The following example demonstrates how to set the background of the footer view.
<picker:SfPicker>
<picker:SfPicker.FooterView>
<picker:PickerFooterView Background="Blue" />
</picker:SfPicker.FooterView>
</picker:SfPicker>
CancelButtonText
Gets or sets the cancel button text in the footer view of SfPicker.
Declaration
public string CancelButtonText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value of CancelButtonText is "Cancel". |
Examples
The following example demonstrates how to set the cancel button text of the footer view.
<picker:SfPicker>
<picker:SfPicker.FooterView>
<picker:PickerFooterView CancelButtonText="Exit" />
</picker:SfPicker.FooterView>
</picker:SfPicker>
DividerColor
Gets or sets the background of the footer separator line background in SfPicker.
Declaration
public Color DividerColor { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Graphics.Color | The default value of DividerColor is "#CAC4D0". |
Examples
The following example demonstrates how to set the divider color of the footer view.
<picker:SfPicker>
<picker:SfPicker.FooterView>
<picker:PickerFooterView DividerColor="Gray" />
</picker:SfPicker.FooterView>
</picker:SfPicker>
Height
Gets or sets the value to specify the height of footer view on SfPicker.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value of Height is 0d. |
Examples
The following example demonstrates how to set the height of the footer view.
<picker:SfPicker>
<picker:SfPicker.FooterView>
<picker:PickerFooterView Height="50" />
</picker:SfPicker.FooterView>
</picker:SfPicker>
OkButtonText
Gets or sets the ok button text in the footer view of SfPicker.
Declaration
public string OkButtonText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value of OkButtonText is "OK". |
Examples
The following example demonstrates how to set the ok button text of the footer view.
<picker:SfPicker>
<picker:SfPicker.FooterView>
<picker:PickerFooterView OkButtonText="Save" />
</picker:SfPicker.FooterView>
</picker:SfPicker>
ShowOkButton
Gets or sets a value indicating whether to show the cancel button in the footer view of SfPicker.
Declaration
public bool ShowOkButton { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value of ShowOkButton is true. |
Examples
The following example demonstrates how to hide the ok button in the footer view.
<picker:SfPicker>
<picker:SfPicker.FooterView>
<picker:PickerFooterView ShowOkButton="False" />
</picker:SfPicker.FooterView>
</picker:SfPicker>
TextStyle
Gets or sets the ok and cancel button text style in the footer view of SfPicker.
Declaration
public PickerTextStyle TextStyle { get; set; }
Property Value
Type |
---|
PickerTextStyle |
Examples
The following example demonstrates how to set the text style of the footer view buttons.