Does WPF have a control similar to the Visual Studio toolbar?

I am writing an application using WPF, and I need to do something similar to the Visual Studio toolbar (see figure). What control should be used for this?

Visual studio toolbox

+4
source share
3 answers

I think you are looking for something like AvalonDock .

alt text

+4
source

Use advanced control for expandable headers.

The contents of each expander can be a ListBox with a special ItemTemplate (with image text).

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

Greetz, knom.

+2
source

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

For your TreeView, you will need to define two element templates: one for the root elements and one for the child elements. It should be pretty simple, but of course it depends on your data.

+1
source

Source: https://habr.com/ru/post/1334341/


All Articles