WrapPanel for windows phone 7

笑着哭i 提交于 2019-12-11 09:05:36

问题


I'm trying to add a WrapPanel to my app, up to now I found that WrapPanel is only available through SilverLight Toolkit here http://silverlight.codeplex.com/releases

I've downloaded it and installed it, but now what do I do?

I assumed that a reference needed to be added but I can't think of what to add.


回答1:


Add a reference to Microsoft.Phone.Controls.Toolkit.dll. The WrapPanel control is in the Microsoft.Phone.Controls namespace.

In your page/user control, add the following XML namespace declaration:

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

Then you can add instances of <toolkit:WrapPanel /> in your XAML.



来源:https://stackoverflow.com/questions/6954835/wrappanel-for-windows-phone-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!