0

I want to start a new StackPanel in Windows Application, But I can not find the assembly reference in visual studio 2015. please help me, is there any solution to auto look for missing assembly reference. Many Thanks

StackPanel sp = new StackPanel();

Steven Li
  • 19
  • 5

1 Answers1

0

Add Reference to

PresentationFramework.dll

then use the namespace

Namespace: System.Windows.Controls

Assembly: PresentationFramework (in PresentationFramework.dll)

Community
  • 1
  • 1
Abin
  • 2,868
  • 1
  • 23
  • 59
  • The namespace alone isn't very helpful as VS will normally prompt you to resolve namespaces in known assemblies and you can't add a namespace without knowing which assembly it's in. – James Aug 06 '15 at 14:46
  • Hi James, I can not find System.Windows.Control. only can find System.Windoes.Forms. – Steven Li Aug 06 '15 at 15:00
  • @user3008989 find the edit. add the referance to PresentationFramework.dll which contains the namespace System.Windows.Controls – Abin Aug 06 '15 at 15:05