© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
6 replies
r2d25551

❔ Bind derived class and base class to CollectionView and Picker

I am trying to bind a derived class to a Picker, and the base class to a CollectionView. Should this work? My picker is always empty:
<CollectionView ItemsSource="{Binding MyData}"
<Picker Grid.Row="1" Title="Language" ItemsSource="{Binding Languages}" ItemDisplayBinding="{Binding Name}" . . . />
<CollectionView ItemsSource="{Binding MyData}"
<Picker Grid.Row="1" Title="Language" ItemsSource="{Binding Languages}" ItemDisplayBinding="{Binding Name}" . . . />

The base class bindings are fine. . . but my picker is having trouble.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Mocking derived class with abstract base class
C#CC# / help
4y ago
❔ Unable to bind CollectionView to Dictionary
C#CC# / help
3y ago
❔ How to instantiate derived class when base class requires args?
C#CC# / help
3y ago
Add attribute to property in base class from derived class when base property already has attribute
C#CC# / help
3y ago