Silverlight 3 - Accordian Item 中的数据网格 - 如何设置标题
我有一个手风琴控件,我在其中添加了一个数据网格。
问题是我无法设置显示数据网格的手风琴项目的标题。
我只能在 AccordionItem 类的对象上设置标题,而不能在将 Datagrid 添加到 Accordion 时设置标题。
我还尝试将 Datagrid 添加到已添加到 Accordion 的 Accordionitem 对象,但未能成功。我不知道如何将 Datagrid 添加到 Accordonite 对象。
感谢您的帮助。
谢谢, 我
I have an Accordion control to which I have added a datagrid.
The problem is that I cannot set the header of the accordian item that displays the Datagrid.
I can only set the header on the object of the class AccordionItem and not when the Datagrid is added to the Accordion.
I also tried to add the Datagrid to the Accordionitem object that was added to the Accordion but could not succeed. I can't figure out how to add Datagrid to accordonitem object.
Appreciate your help.
Thanks,
I
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Accordion
仅具有AccordionItem
子项。您应该像这样将子项明确设置为Accordion
(Accordion
的示例,其中StackPanel
作为子项和标题模板) :所以在你的情况下,它会是这样的:
希望这对你有意义。
An
Accordion
has onlyAccordionItem
children. You should set the child explicitly to theAccordion
like that (example of anAccordion
with aStackPanel
as a child and a template for the header):So in your case it would be something like:
Hope that makes sense to you.