menu

MAUI Toolkit

  • User Guide
  • Demos
  • Support
Class PickerColumnHeaderView - MAUI-ToolKit API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PickerColumnHeaderView

    Represents a class which is used to customize all the properties of column header view of the SfPicker.

    Inheritance
    System.Object
    PickerColumnHeaderView
    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.

    • XAML
    • C#
    <picker:SfPicker>
        <picker:SfPicker.ColumnHeaderView>
            <picker:PickerColumnHeaderView Background="#E0E0E0" />
        </picker:SfPicker.ColumnHeaderView>
    </picker:SfPicker>
    SfPicker picker = new SfPicker();
    picker.ColumnHeaderView = new PickerColumnHeaderView
    {
        Background = new SolidColorBrush(Color.FromHex("#E0E0E0"))
    };

    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.

    • XAML
    • C#
    <picker:SfPicker>
        <picker:SfPicker.ColumnHeaderView>
            <picker:PickerColumnHeaderView DividerColor="Gray" />
        </picker:SfPicker.ColumnHeaderView>
    </picker:SfPicker>
    SfPicker picker = new SfPicker();
    picker.ColumnHeaderView = new PickerColumnHeaderView
    {
        DividerColor = Colors.Gray
    };

    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.

    • XAML
    • C#
    <picker:SfPicker>
        <picker:SfPicker.ColumnHeaderView>
            <picker:PickerColumnHeaderView Height="50" />
        </picker:SfPicker.ColumnHeaderView>
    </picker:SfPicker>
    SfPicker picker = new SfPicker();
    picker.ColumnHeaderView = new PickerColumnHeaderView
    {
        Height = 50
    };

    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.

    • XAML
    • C#
    <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>
    SfPicker picker = new SfPicker();
    picker.ColumnHeaderView = new PickerColumnHeaderView
    {
        TextStyle = new PickerTextStyle
        {
            TextColor = Colors.Blue,
            FontSize = 16
        }
    };
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved