Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Picker does not display Title or selected item when loading

$
0
0

Hi,

I can't get the Picker control to show default "Select a language" text, nor does it display the default value set in code-behind. What am I missing?

See AboutPage.xaml and AboutViewModel.cs in attached project.

<Picker x:Name="languagepicker" BackgroundColor="White" TextColor="Black" Title="Select Language" ItemsSource="{Binding LanguageList}" SelectedItem="{Binding SelectedLanguage, Mode=TwoWay}" />

public Language SelectedLanguage { get { return language; } set { if (language != value) { SetProperty(ref language, value, "LanguageName"); } } }


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>