Cole Tobin

Results 94 comments of Cole Tobin

`e` is of type `AvaloniaPropertyChangedEventArgs` and `(GradientStop)e.Sender` doesn't have a `RaiseInvalidated` function.

Well, `LinearGradientBrush` is sealed... So I had to make a dumb copy of Avalonia's with the changes: ```cs public class LinearGradientBrush2 : GradientBrush, ILinearGradientBrush { public static readonly StyledProperty StartPointProperty...

I'm not sure what you mean. I'm calling `RaiseInvalidated` against my own `LinearGradientBrush2` object, whether I do `this.RaiseInvalidated` or just `RaiseInvalidated`. If you meant passing `e` into the function, changing...

More info: `Invalidated` is `null` *only* when the brush is used as an `OpacityMask`. Doing the change to `Panel.Background` from above shows an invocation into `WeakEventHandlerManager.OnEvent` which ultimately calls `Visual.AffectsRenderInvalidated`.

I don't know how useful this is, but the only difference in the generated `XamlClosure_##.Build` functions is: Changing from `Transparent` to `White` in two places: ```diff // inside the `GradientStop`...

Well, 11.0-preview1 seems to have made it worse... Now, scrolling the parent control vertically doesn't seem to trigger a redraw (like it did in my video).

Still broken on 11.0-preview3. `Invalidated` is still `null`.

We found a workaround. You can't change `Position` before the window is shown. So, in our method where we were setting `Position = new PixelPoint(newX, newY)`, we instead save the...