Class PickerSelectionView
Represents a class which is used to customize all the properties of selection view of the SfPicker.
Inheritance
Namespace: Syncfusion.Maui.Toolkit.Picker
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class PickerSelectionView : Element
Constructors
PickerSelectionView()
Declaration
public PickerSelectionView()
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. |
CornerRadiusProperty
Identifies the CornerRadius dependency property.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for CornerRadius dependency property. |
PaddingProperty
Identifies the Padding dependency property.
Declaration
public static readonly BindableProperty PaddingProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Padding dependency property. |
StrokeProperty
Identifies the Stroke dependency property.
Declaration
public static readonly BindableProperty StrokeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Stroke dependency property. |
Properties
Background
Gets or sets the background of the selection view in SfPicker.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default value of Background is SolidColorBrush(Color.FromArgb("#6750A4")). |
Examples
The following example demonstrates how to set the background of the selection view.
<picker:SfPicker>
<picker:SfPicker.SelectionView>
<picker:PickerSelectionView Background="LightBlue" />
</picker:SfPicker.SelectionView>
</picker:SfPicker>
CornerRadius
Gets or sets the corner radius of the selection view in SfPicker.
Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.CornerRadius | The default value of CornerRadius is 20. |
Examples
The following example demonstrates how to set the corner radius of the selection view.
<picker:SfPicker>
<picker:SfPicker.SelectionView>
<picker:PickerSelectionView CornerRadius="10" />
</picker:SfPicker.SelectionView>
</picker:SfPicker>
Padding
Gets or sets the padding value of the selection view in SfPicker.
Declaration
public Thickness Padding { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Thickness | The default value of Padding is new Thickness(5, 2). |
Examples
The following example demonstrates how to set the padding of the selection view.
<picker:SfPicker>
<picker:SfPicker.SelectionView>
<picker:PickerSelectionView Padding="8,4" />
</picker:SfPicker.SelectionView>
</picker:SfPicker>
Stroke
Gets or sets the stroke color of the selection view in SfPicker.
Declaration
public Color Stroke { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Graphics.Color | The default value of Stroke is Colors.Transparent. |
Examples
The following example demonstrates how to set the stroke of the selection view.