-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextBox TextWrapping.Wrap inside Grid with IsSharedSizeScope #10520
Comments
That seems by design. IsSharedScope says:
Where Star is sized to available space, while Auto is sized to content, as documented here |
@miloush Ok, thank you for the explanation. Do you know why this limitation exists? Is it a limitation of how WPF layout (measure/arrange) works, so it is "impossible" to share size between grids? Or is it just a limitation of the current implementation of |
I think it gets a bit more complicated, star represents potentially different value in each grid. The grids don't have to have the same width for example. If you had two grids with two columns, one of them shared size, but the grids were of different size. What would you expect the shared size to be? Half of the smaller grid, half of the larger grid, or actually different width in each grid? Sizing to content gives you an absolute number that can be shared across several grids. |
@miloush Ok, column/row size sharing is not a suitable concept for my use case. |
Description
TextBox TextWrapping=Wrap
does not work when contained inGrid
withinSharedSizeScope
.Reproduction Steps
Expected behavior
TextWrapping.Wrap
will work.Actual behavior
TextWrapping.Wrap
is not working.Regression?
Seems not.
Known Workarounds
I am not aware of any.
Impact
Cannot use both
IsSharedSizeScope
andTextWrapping.Wrap
. Cannot create multiple field lists where text is wrapped.Configuration
.NET 9.0.1
Other information
No response
The text was updated successfully, but these errors were encountered: