DapperDeer
Dependency Properties and When to use ObservableCollections
I fgured out how to get this to work: I needed to create a PropertyChangedCallback and set the PokemonDetails collection to the new value. I would've thought this just happened with the Setter, but I guess not?
6 replies
Dependency Properties and When to use ObservableCollections
The ListBox in PokemonDetails.xaml is within a Grid, which is specifying
<Grid DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type wpfApp1:PokemonDetails}}}">
6 replies
EntityFramework Property Binding
I have a DbContextFactory that I am using to get a new DbContext and assigning the calling class's ObservableCollection<Pokemon> prop to DbContext.Set<Pokemon>(), so it could also be how I'm calling and getting the values, but I think it's more to do with how I'm setting up the model creation.
8 replies