Category / Section
How to remove the border in Xamarin.Forms.UWP SfPicker
1 min read
The border in Xamarin.Forms.UWP SfPicker can be removed by setting BorderColor as transparent.
The following steps explain how to remove the border in Xamarin.Forms.UWP SfPicker.
Step 1: Create a view model class and add items to display in Xamarin.Forms.UWP SfPicker.
Step 2: Add the picker in XAML and set the properties that needs to be displayed in Xamarin.Forms.UWP SfPicker.
Step 3: Set the border color of Xamarin.Forms.UWP SfPicker as transparent to remove the border.
The following code sample demonstrates how to remove the border in Xamarin.Forms.UWP SfPicker.
XAML:
<sfPicker:SfPicker PickerHeight="400" PickerWidth="300" ShowColumnHeader="True" BorderColor="Transparent" ItemsSource="{Binding PickerItems}" ColumnHeaderText="{Binding ColumnHeaders}" HeaderText="Pick a job" ShowHeader="True"> </sfPicker:SfPicker>
Output:
You can find the sample in the following link: Sample