How do I create a basic Picker in XAML?

Platform: .NET MAUI| Category: Controls

You can create a basic Picker in XAML like this:
XAML:

   <Picker x:Name="myPicker" >
        <Picker.ItemsSource>
            <x:Array Type="{x:Type x:String}">
                <x:String>Jack</x:String>
                <x:String>Annie</x:String>
                <x:String>Martin</x:String>
            </x:Array>
        </Picker.ItemsSource>
    </Picker>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.