更简单的面包屑栏示例
我的问题很简单。我正在构建一个应用程序(WPF CSharp),我需要用户为我提供我的应用程序将使用的路径。之前我添加了文本框来显示路径,但是后来我决定使用 Win 7 风格的资源管理器导航栏(即面包屑栏)会很酷。我在这里找到了一个很棒的开源组件(http://www.codeproject.com/ KB/tree/WPFBreadcrumbBar.aspx)但是,我无法在我的应用程序中使用它。我添加了对“工具箱”部分和“项目>参考”部分的引用。我还可以从 Toolbox 将控件添加到我的 WPF 窗口,但我不知道如何填充它,如何更改和显示其中的项目等。关于组件作者,我认为 Codeproject 上的文章不是很“容易理解” '(XAML?我想要 C# 代码)以及 PopulateItems 事件,例如,对我不起作用。因此,如果有人给我一个关于如何轻松地将项目添加到此栏、更改项目或简短地向我展示如何使其工作的基本示例,我将不胜感激,
谢谢。
my question is very simple. I am building an app(WPF CSharp) and I need user to give me paths that my app is going to use. Previously I added textboxes to show pathways, however, later I decided that it would be cool to use a Win 7 style Explorer navigation bar, which is a Breadcrumb bar. I found a great open source component for it here (http://www.codeproject.com/KB/tree/WPFBreadcrumbBar.aspx) however, I could not use it in my app. I added references both to Toolbox section and Project>References section. I can also add the control to my WPF window from Toolbox, yet I could not figure out how to fill it, how to change and show items in it etc. With respect to component author, I think article on Codeproject is not very 'understandable'(XAML? I want C# code please) and also PopulateItems event, for instance, did not work for me. So, if someone give me a basic example on how to add items to this bar easily, change items, or shortly, shows me how to make it work, I will appreciate for that,
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想这取决于你想如何呈现它。如果您想使用选项卡控件来模拟功能,您可以采用以下路线:
http://www.wpfblogger.com/post/BreadCrumb-TabControl-Style-for-WPF-40.aspx
I Guess it depends on how you want to present it. If you want to use a tab control to simulate the functionality you could go this route:
http://www.wpfblogger.com/post/BreadCrumb-TabControl-Style-for-WPF-40.aspx