简体   繁体   English

在WPF,VS2010中帮助控制Accordion

[英]Help with Accordion control in WPF, VS2010

I am trying to follow this tutorial: http://www.c-sharpcorner.com/UploadFile/dpatra/538/ 我正在尝试遵循本教程: http//www.c-sharpcorner.com/UploadFile/dpatra/538/

I added the WPFtookit and System.Windows.Controls.Layout.Toolkit to my references of my project. 我将WPFtookit和System.Windows.Controls.Layout.Toolkit添加到我的项目引用中。

In my xaml, at the top I added: 在我的xaml中,在顶部我添加:

xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"

as part of my ResourceDictionary element. 作为我的ResourceDictionary元素的一部分。

When I then try to do: 当我尝试做的时候:

<toolkit:

Accordion and AccordionItem do not show. Accordion和AccordionItem不显示。 The first thing I see is "ButtonBaseBehavior." 我看到的第一件事是“ButtonBaseBehavior”。 Am I missing something? 我错过了什么吗? (I'm pretty new to VS, WPF and the like). (我是VS,WPF之类的新手)。 Thanks. 谢谢。

This is because you are using 2010 with .Net 4.0 the namespaces are colliding. 这是因为您使用2010与.Net 4.0命名空间发生冲突。 There is no Accordian in the net framework (4.0) and the old toolkit can't be used side by side. 网络框架(4.0)中没有Accordian,并且旧工具包不能并排使用。 You will have to create your own. 你必须创建自己的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM