Class PickerColumnHeaderView
Represents a class which is used to customize all the properties of column header view of the SfPicker.
Inheritance
Namespace: Syncfusion.Maui.Toolkit.Picker
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class PickerColumnHeaderView : Element, IThemeElement
Constructors
PickerColumnHeaderView()
Initializes a new instance of the PickerColumnHeaderView class.
Declaration
public PickerColumnHeaderView()
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. |
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. |
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 column header view in SfPicker.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default value Background is "#F7F2FB". |
Examples
The following example demonstrates how to set the background of the column header view.
<picker:SfPicker>
<picker:SfPicker.ColumnHeaderView>
<picker:PickerColumnHeaderView Background="#E0E0E0" />
</picker:SfPicker.ColumnHeaderView>
</picker:SfPicker>
DividerColor
Gets or sets the background of the column header 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 column header view.
<picker:SfPicker>
<picker:SfPicker.ColumnHeaderView>
<picker:PickerColumnHeaderView DividerColor="Gray" />
</picker:SfPicker.ColumnHeaderView>
</picker:SfPicker>
Height
Gets or sets the value to specify the height of column header 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 column header view.
<picker:SfPicker>
<picker:SfPicker.ColumnHeaderView>
<picker:PickerColumnHeaderView Height="50" />
</picker:SfPicker.ColumnHeaderView>
</picker:SfPicker>
TextStyle
Gets or sets the text style of the column header text in SfPicker.
Declaration
public PickerTextStyle TextStyle { get; set; }
Property Value
Type |
---|
PickerTextStyle |
Examples
The following example demonstrates how to set the text style of the column header view.
<picker:SfPicker>
<picker:SfPicker.ColumnHeaderView>
<picker:PickerColumnHeaderView>
<picker:PickerColumnHeaderView.TextStyle>
<picker:PickerTextStyle TextColor="Blue" FontSize="16" />
</picker:PickerColumnHeaderView.TextStyle>
</picker:PickerColumnHeaderView>
</picker:SfPicker.ColumnHeaderView>
</picker:SfPicker>