适用于 Windows Phone 7 的 WrapPanel [英] WrapPanel for windows phone 7

查看:29
本文介绍了适用于 Windows Phone 7 的 WrapPanel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 WrapPanel 添加到我的应用程序中,到目前为止我发现 WrapPanel 只能通过此处的 SilverLight Toolkit 使用 http://silverlight.codeplex.com/releases

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.

推荐答案

添加对 Microsoft.Phone.Controls.Toolkit.dll 的引用.WrapPanel 控件位于 Microsoft.Phone.Controls 命名空间中.

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

在您的页面/用户控件中,添加以下 XML 命名空间声明:

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

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

然后您可以在 XAML 中添加 的实例.

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

这篇关于适用于 Windows Phone 7 的 WrapPanel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆