E
E
egotyner2015-06-06 18:57:24
WPF
egotyner, 2015-06-06 18:57:24

[C#, WPF] How to make a similar dropdown list?

Click on the "+" button. Such a thing pops up, while all the tabs that are lower, respectively, move even lower, click on the "-" tab closes, and all the rest fall into place.
I think to do it on WPF .. But, I can’t imagine how to do this miracle, because I didn’t work with WPF enough. If you have ideas how to do it in pure code, without WPF, they are also good.
Thanks in advance.
0dbd561368394433b3d6bd8c12f38d4a.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Grekhov, 2015-06-11
@Sterk

If I understand correctly, the screenshot shows a tree, then use TreeView ( the first example from Google )
If you just need a peer-to-peer list whose elements can expand an additional panel with information, then I would suggest using ListView. Make an element template like this:

----------------------
|  (+)  Заголовок     |
----------------------
|    Скрываемая       |
|     Панелька        |
|     С инфой         |
----------------------

Make a binding on the IsVisible property of the panel and play it by pressing the - (+) button.

A
Anton Papin, 2015-06-12
@i_light

You need wpf accordion

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question