Error: "Unable to find a setter that allows multiple assignments to the property DataContext of type ..." #10995
-
MainWindow.axaml is below, there is only one child element. DataContext is set to MainWindowViewModel in App.xaml.cs.
MainWindowViewModel.cs
|
Beta Was this translation helpful? Give feedback.
Answered by
AlanPBourke
Apr 13, 2023
Replies: 1 comment 3 replies
-
The issue is of course the word 'DataContext' in the boilerplate 'This only sets ...' comment in the XAML being picked up by the compiler, d'oh ... |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
AlanPBourke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue is of course the word 'DataContext' in the boilerplate 'This only sets ...' comment in the XAML being picked up by the compiler, d'oh ...