erotavlas
erotavlas

Reputation: 4485

How do I add the ToggleSwitch control in Windows Phone 8 to the toolbox (Visual Studio 2013)

From NuGet I added the most recent Windows Phone ToolKit to my solution. I also checked the object Browser and the ToggleSwitch control is definitely there, but I can't add it to my Toolbox (doesn't show up as one of the controls from Choose Toolbox Items...) and also when I start typing on the Xaml page the closest that appears is the ToggleButton.

I added this already to my phoneapplicationpage

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

So I'm not sure where to go from here

EDIT: figured out from xaml I'm supposed to do this

<tk:ToggleSwitch></tk:ToggleSwitch>

But I still can't get it into the toolbox if that's even possible

Upvotes: 1

Views: 3093

Answers (1)

Romasz
Romasz

Reputation: 29792

It is possible to add Controls to ToolBox, - here is MSDN link.

It goes like this:

  1. Open TootBox,
  2. Right Click on 'Common Windows Phone Controls' (for example),
  3. Click on 'Choose Items',
  4. You can Browse for your dll and add it,
  5. Mark Controls you wish to add.

Upvotes: 2

Related Questions