This is a migrated thread and some comments may be shown as answers.

few expanders in a window

1 Answer 32 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Zbigniew Kozłowski
Top achievements
Rank 1
Zbigniew Kozłowski asked on 19 Apr 2010, 02:12 PM
Hi,
i don't know how to make for example 3 expanders one after another, so they will go up when one is collapsed, like this:

v EXPANDER_1 (IsExpanded=false)
--------------------
v EXPANDER_2 (IsExpanded=false)
--------------------
v EXPANDER_3 (IsExpanded=false)
--------------------

than

^ EXPANDER_1 (IsExpanded=true)
some controls
some controls
some controls
--------------------
v EXPANDER_2 (IsExpanded=false)
--------------------
^ EXPANDER_3 (IsExpanded=true)
some controls
some controls
some controls
--------------------

when i collapse one now, i just have free space between them.

Regards,
Zbigniew Kozłowski

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 22 Apr 2010, 05:56 PM
Hello Zbigniew,

Thank you for contacting us.

You can achieve your goals lay-outing expanders in one of following two ways:
  • Using a StackPanel:
    For example you can stack your expanders in a stack panel (for example vertical oriented) and each expander will move reposition expanders below it.
  • Using a Grid:
    Each expander should be in a placed in a separated grid-row alone. The height of the row should be marked as Auto.

Please preview the attached here example and let us know if you have more questions.

Greetings,
Ivan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Expander
Asked by
Zbigniew Kozłowski
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or