In my VSTO application-level word addin, I'm trying to add a Grid to a UserControl in order to make its layout coherent.
However, when I try to declare the grid, Visual Studio complains that the type or namespace "Grid" cannot be found. I solved this error by adding the PresentationFramework assembly as a project reference and importing System.Windows.Controls, but now I have an even bigger issue: Visual Studio complains that "UserControl" is an ambiguous reference between "System.Windows.Controls.UserControl" and "System.Windows.Forms.UserControl".
I checked the top of my .cs file and found it already was importing System.Windows.Forms by default and now, it is also importing System.Windows.Controls.
I'm wondering why the VSTO project defaulted to importing System.Windows.Forms in the first place instead of System.Windows.Controls and what the main difference is between the two namespaces because in my WPF application I use System.Windows.Controls. Thank you!