You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 3 Expander controls inside the Grid surrounded by the ScrollViewer. The intention is that the third Expander should - in the open state - always use all available space. To explain the problem following XAML is used:
Setting the Expander Style to Null shows the proper behavior. Using the MaterialDesign default Styleshows, that the Expander is growing to the MinHeight value of the blue Grid inside only!
Window with Height set to 750 perfectly shows the expected behavior between ScrollViewer and Expanders.
Version
4.9.0
The text was updated successfully, but these errors were encountered:
@DrCQ I believe this a simple matter of the VerticalContentAlignment of the Expander defaults to Top in MDIX, rather than Stretch which is the default value in the default style. If you explicitly set VerticalContentAlignment=Stretch on your Expander, I believe you get the expected behavior.
I have added a PR to change the default value because I think it is better to follow the default templates unless there is a specific reason not to; which I don't believe there is in this case.
Bug explanation
I have 3
Expander
controls inside theGrid
surrounded by theScrollViewer
. The intention is that the thirdExpander
should - in the open state - always use all available space. To explain the problem following XAML is used:Setting the
Expander
Style toNull
shows the proper behavior. Using the MaterialDesign defaultStyle
shows, that theExpander
is growing to theMinHeight
value of the blueGrid
inside only!Window
withHeight
set to 750 perfectly shows the expected behavior betweenScrollViewer
andExpander
s.Version
4.9.0
The text was updated successfully, but these errors were encountered: