"Value cannot be null. Parameter name: context" when adding WPF UserControl into WinForm

禹桀 李 1 Reputation point
2021-08-31T09:41:17.623+00:00

When i adding Elementhost into Winform, an error occurs, showing "Value cannot be null. Parameter name: context"
127849-image.png

This problem has puzzled me for a long time, any help is highly appreciated.

Developer technologies Windows Presentation Foundation
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.