Visual 2010 中的 C# Windows 窗体中是否有中继器控件?或者替代方案?

发布于 2024-12-04 18:51:31 字数 52 浏览 3 评论 0原文

Visual 2010 中的 C# Windows 窗体中是否有中继器控件?或者替代方案?

Is there a repeater control in C# windows form in Visual 2010 ? Or an alternative ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

韬韬不绝 2024-12-11 18:51:31

是的,有。
从 Visual Studio 工具箱转到 Visual Basic PowerPacks 部分,您将在其中找到 DataRepeater 控件。即使它说 VB PowerPack 它也适用于 C#。

在此处输入图像描述

它将添加对以下两个程序集的引用:

  • Microsoft.VisualBasic
  • Microsoft.VisualBasic.PowerPacks.Vs

Yes there is.
From the Visual Studio Toolbox go to section Visual Basic PowerPacks and there you will find a DataRepeater control. Even if it says VB PowerPack it works with C# as well.

enter image description here

It will add a reference to following two assemblies:

  • Microsoft.VisualBasic
  • Microsoft.VisualBasic.PowerPacks.Vs
酒解孤独 2024-12-11 18:51:31

原始答案: .NET Framework 4 中的中继器
错误,感谢您的评论,仅适用于 WebForms,不适用于 WinForms。

您可以使用UserControl,创建您的模板,并将其用作中继器。

Original answer : Repeater in .NET Framework 4.
Wrong, thanks for the comments, only works in WebForms, not in WinForms.

What you could use is UserControl, create your template, and use it as a Repeater.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文