WP7 (Windows Phone 7) WrapPanel

by Vahid 23. February 2011 16:16

I cannot believe that I spent half day figuring out how to wrap controls in a stackpanle control in WP7 Sad smile 

but anyway I finally came to know that I should use WrapPanel instead of StackPanel. so please don’t make my mistake and download the Silverlight toolkit for WP7 from here and then make a reference to “Microsoft.Phone.Controls.Toolkit.dll” assembly from this address:

C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Toolkit\Nov10\Bin\Microsoft.Phone.Controls.Toolkit.dll

and them import the controls to your page using this command:

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

the toolkit has got the following controls which are really savers Winking smile

  • AutoCompleteBox
  • ListPicker
  • LongListSelector
  • Page Transitions
  • GestureService/GestureListener
  • ContextMenu
  • DatePicker
  • TimePicker
  • ToggleSwitch
  • WrapPanel

Tags:

.Net