Xfx ComboBox

First of all, I wish you a very happy new year !

I use the XfxComboBox... My question is : Is it possible that the ComboBox do not work in a TabbedPage ? The list is created well in the code but does not appear. I use the same method for an another classic ContentPage and here work fine.

Thx

Answers

  • LeonLuLeonLu Member, Xamarin Team Xamurai

    You can use Picker control at xamarin forms to achieve list some objects in a box.

       <Picker x:Name="picker"
        Title="Select a monkey"
        TitleColor="Red">
        <Picker.ItemsSource>
           <x:Array Type="{x:Type x:String}">
           <x:String>Baboon</x:String>
           <x:String>Capuchin Monkey</x:String>
           <x:String>Blue Monkey</x:String>
           <x:String>Squirrel Monkey</x:String>
           <x:String>Golden Lion Tamarin</x:String>
           <x:String>Howler Monkey</x:String>
           <x:String>Japanese Macaque</x:String>
          </x:Array>
          </Picker.ItemsSource>
        </Picker>
    

    Here is link.
    https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/picker/populating-itemssource

  • Franck_SDEAFranck_SDEA Member ✭✭

    @LeonLu Populating is not the problem and I must use a ComboBox. the problem is that the list do not appear in the UI.

  • LeonLuLeonLu Member, Xamarin Team Xamurai

    I test it in the Tabbed page. it worked as normal, here is running GIF.

    Here is my demo.

  • Franck_SDEAFranck_SDEA Member ✭✭

    Ok thx

  • LeonLuLeonLu Member, Xamarin Team Xamurai

    You are welcome.

Sign In or Register to comment.