多列组合框 [英] Multi-column combobox

查看:78
本文介绍了多列组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用样本数据在组合框中轻松创建多个列。问题是,如何在不使用样本数据的情况下手动创建一个?

I can easily create multiple columns in a combobox using sample data. Question is, how can I create one manually, without using sample data?

还有相关问题:创建示例数据后是否有任何方法可以编辑样本数据?我在谈论在代码窗格中编辑它,而不是使用数据选项卡中的集合编辑对话框。

Also related question: Is there any way I can edit sample data once it's created? I'm talking about editing it in the code pane though, not using the collection edit dialog you get in the data tab.

谢谢!

推荐答案

您可以通过打开SampleData文件夹并查找特定来​​源的xaml文档,在代码编辑器中编辑样本数据。可以在那里编辑项目。

You can edit the sample data in the code editor by opening the SampleData folder and finding the xaml document for your particular source. Items can be edited there.

 

您需要编辑模板以创建列。 例如,创建组合框,右键单击它,选择编辑其他模板,项目模板,创建空白。 现在,您将编辑每个项目的模板。您可以首先使用
样本数据版本来熟悉事物的外观,以及如何设置数据绑定。

You need to edit the template to create columns.  For example, create your combobox, right click it, select edit additional templates, item template, create empty.  Now you will be editing the template for each item. You could do this with your sample data version first to get familiar with how things should look, and how the data bindings should be set up.


这篇关于多列组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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