简体   繁体   中英

Is there a control in WPF similar to the Visual Studio toolbox?

I'm writing an application using WPF, and I need to make something that looks like the Visual Studio toolbox (please see pic). What control should I use for this?

Visual Studio工具箱

I think you are looking for something like AvalonDock .

替代文字

Use an for the expandable headers.

The content of every expander can be a with a special ItemTemplate (with image an text).

http://wpf.codeplex.com/ has additional controls to help you.

greetz, knom.

You would use either a ListView or a TreeView. Both controls allow you to write templates for your items, the difference is that the TreeView is hierarchical. Which control you use depends on the structure of your data, but you will proabably use the TreeView.

For your TreeView you will have to define two item templates, one for the root items and one for the child items. It should be quite easy, but it depends on your data of course.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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