When invalidating a parent, gradient applied to the child fills the entire screen.
In my example, I have a Grid with 2 Rows(40,*) and loaded a button as first row with LinearGradientBrush.
When calling Grid.InvalidateMeasure(), the gradient size fills the entire screen.
Yes
Rename the gradient relevant layer name to skip size updating for this particaluar layer alone.
private void ButtonLoaded(object? sender, EventArgs e)
{
Description
When invalidating a parent, gradient applied to the child fills the entire screen.
In my example, I have a Grid with 2 Rows(40,*) and loaded a button as first row with LinearGradientBrush. When calling Grid.InvalidateMeasure(), the gradient size fills the entire screen.
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
9.0.10 SR1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
No response
Did you find any workaround?
Yes Rename the gradient relevant layer name to skip size updating for this particaluar layer alone. private void ButtonLoaded(object? sender, EventArgs e) {
if IOS
endif
Relevant log output