对于非开发人员来说,创建 XAML 网格的最佳方式是什么?

发布于 2024-08-05 21:41:22 字数 361 浏览 3 评论 0原文

我们需要让非开发人员使用 XAML 创建数十个输入表单。

我发现的最佳解决方案是免费的XAML Power Toys,因为您可以直观地创建和编辑网格,也可以从类创建。

我快速查看了 Blend 3,将一个网格拖到我的窗口中,但发现没有选项来实际创建一个带有标签的 4 x 10 网格。我认为 Blend 会有这些类型的选项,以便设计人员可以快速设计带有标签/控件对的网格。

我是否遗漏了有关 Blend 的某些内容,或者它真的没有任何输入表单设计功能吗?

We need to have non-developers create dozens of input forms with XAML.

The best solution I found was the free XAML Power Toys since you can create and edit grids visually, also create from classes.

I took a look at Blend 3 quickly, dragged a Grid into my Window but found no options to actually create, say, a 4 x 10 grid with labels. I thought Blend would have these kinds of options so that designers could quickly design a grid with label/control pairs.

Am I missing something about Blend, or does it really not have any input form designing features?

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

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

发布评论

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

评论(2

溺深海 2024-08-12 21:41:22

嗯。这会比创建带有图像的 StackPanel 或带有 TextBox 的 DockPanel 选项更自然吗?

我的意思是,尽管带有标签的网格对您来说是一种自然的 UI 设计,但大多数设计师(Blend 的目标用户)会将此类功能视为“Microsoft Word 风格”,甚至(不寒而栗)“首页- ish”并扼杀他们的创造力。我猜。

实际上,Blend 和 Visual Studio 都允许您以可视方式创建和编辑网格。一旦你掌握了它的窍门,它真的很快。

当然,还有复制/粘贴。

Hm. Would that be any more natural than, say, an option to create a StackPanel with images or a DockPanel with TextBoxes?

What I'm getting at is that even though a grid with labels is a natural UI design for you, most designers (whom Blend is targeting) would regard such features as "Microsoft Word-ish" or even (shudder) "Front Page-ish" and stifling their creativity. I guess.

Actually, both Blend and Visual Studio allow you to create and edit grids visually. It's really quite fast once you get the hang of it.

And then there is copy/paste, of course..

洋洋洒洒 2024-08-12 21:41:22

Blend确实有这个能力。您甚至可以直接在 Visual Studio 的 WPF 设计器中执行此操作。这是学习工具的问题。您仍然可以创建一个网格,将其设置为 4 列和 10 行(这会将列和行定义添加到网格中),然后拖入所需的元素。

问题可能更多在于您试图以与 Windows 窗体等工具相同的方式对待 WPF - 在这种情况下,它的工作很糟糕。 WPF 就是学习如何有效地使用 WPF,这是一种非常不同的心态(根据我的经验,对于非开发人员来说通常更容易上手,但对于开发人员来说很难)。

然而,没有使用标签/条目控制工具自动创建网格。这更可能是 WPF Toolkit 中的 DataGrid 之类的工作。

Blend does have this capability. You can even do this directly in Visual Studio's WPF Designer. It's a matter of learning the tools. You can still just make a grid, set it to 4 columns and 10 rows (which adds the Column and Row definitions to the grid), and then drag in the elements you want.

The problem is probably more that you're trying to treat WPF the same way as a tool like Windows Forms - in which case, it does a horrible job. WPF is all about learning how to use WPF effectively, which is a very different mindset (in my experience, it's usually easier for non-developers to pick up, but tough for developers).

There are not automatic grid creation with label/entry control tools, however. This is more likely a job for something like the DataGrid from the WPF Toolkit.

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