Wrong type in ListDetailsView DetailsTemplate #3931
Unanswered
loics2
asked this question in
Questions & Help
Replies: 1 comment 2 replies
-
@Sergio0694 is there any workaround to make this work and not receive that error ⬆️ without being confined to DetailsTemplate? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm currently working on an app using
ListDetailsView
, and it mostly works correctly. The only issue I have is when the page is loaded, theItemsSource
is empty and filled by anasync
method. During this short time, nothing is selected and theNoSelectionContentTemplate
is briefly displayed, but it appears that my view model is bound to theDetailsTemplate
.Multiple binding errors appear in the console :
If I try to set a a
DataType
to theDetailsTemplate
, it just crashes with a cast error showing that my view model is bound.Here's some the xaml :
How can I avoid having my view model bound to the
DetailsTemplate
?Edit : I just noticed it's the value of the
DataContext
, which is understandable. But I still want to avoid binding errors.Beta Was this translation helpful? Give feedback.
All reactions