Posted 17 years ago
by Joseph Gershgorin

If my row definitions look like this:
<Grid.RowDefinitions >
<RowDefinition Height="Auto" />
<RowDefinition Height="1" />
<RowDefinition Height="Auto" />
<RowDefinition Height="1" />
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
Then the expander content panes size out, but they go off the screen if the content is too high (long treeview). If I use star instead of auto sizing then scroll bars appear when the content is too high, but the height of the expanders is no longer dynamic.
I would like it so the height of the expanders size to content within its container (while still showing any expander headers/content that may be below or above the current expander) and still show scrollbars if the content is too high.
Is this possible?
<Grid.RowDefinitions >
<RowDefinition Height="Auto" />
<RowDefinition Height="1" />
<RowDefinition Height="Auto" />
<RowDefinition Height="1" />
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
Then the expander content panes size out, but they go off the screen if the content is too high (long treeview). If I use star instead of auto sizing then scroll bars appear when the content is too high, but the height of the expanders is no longer dynamic.
I would like it so the height of the expanders size to content within its container (while still showing any expander headers/content that may be below or above the current expander) and still show scrollbars if the content is too high.
Is this possible?