Closed Seekeer closed 1 year ago
And got error.
What error?
In WPF both piece of code will lead to the same results.
Just to be clear, it's only a previewer related issue? As you are using design data context. Or the same issue with normal data context usage? Like, settings "DataContext" instead of "d:DataContext".
What error?
DataGrid is trying to bind to TabControl's DataContext.CollectionView not DataContext.AccountsViewModelAccounts.CollectionView
it's only a previewer related issue?
Nope. When I'm replacing it with plain DataContext issue remains the same.
@Seekeer if it's an error, please attach full message and stacktrace. If it's an error in the console log, please attach full error message. Ideally, minimal sample project would help.
Because, normally, this kind of code works just fine.
Duplicate of #10958 (closing this one, as another has simpler repro)
I have following code:
And got error. But when I move DataContext to grid I got items from AccountsViewModelAccounts.CollectionView
In WPF both piece of code will lead to the same results.