SelSubCategories = subCat.FirstOrDefault(a => a. Var subCat = await api.GetSubCategories("sport") Public ObservableCollection SubCategories Private ObservableCollection _subCategories = new ObservableCollection() Public event Propert圜hangedEventHandler Propert圜hanged 53.3K subscribers Subscribe 90 11K views 1 year ago In this Xamarin tutorial for beginners, youll learn how to set up a new project that is able to use free DevExpress Xamarin Forms UI. public class QuizPageViewModel : INotifyPropert圜hanged I also tried with the SelectedIndex which didn't work, but I prefer the SelectedItem, because this is the value I got literally. Items are loaded correctly from the ViewModel, but with the SelectedItem still no success. Then I changed it to a ViewModel to load the data and set the selected item, based on different websites. īy default the text of the picker the title SUBCategory, but I want to change this to one of the items which I get from an api call.Īt first, I loaded the ItemSource from the view and tried to set the SelectedItem that, but without any success. For my Xamarin Forms app I'm using a picker to select subcategories of a quiz category.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |