gusaindpk
gusaindpk

Reputation: 1243

Microsoft.Phone.Controls.Toolkit unable to import using directive

I have downloaded and installed Microsoft.Phone.Controls.Toolkit and I am able to include it in the xaml page, but I am unable to include it in the C# file(like "using Microsoft.Phone.Controls.Toolkit" ). any idea why this happens?

Upvotes: 0

Views: 965

Answers (3)

Ade A
Ade A

Reputation: 146

Did you add the DLL as a reference to the project?

Upvotes: 0

Joel
Joel

Reputation: 309

For the xaml:

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"

You can use the controls in the C# file after you add the code post above.

Upvotes: 1

elp
elp

Reputation: 8131

...try to build and after add

using Microsoft.Phone.Controls.Toolkit;

Upvotes: 0

Related Questions