These are chat archives for AvaloniaUI/Avalonia
PolylineGeometryyou comitted. All of the other geometry typed defer to the platform implementation for
PolylineGeometrycalculates it itself. Is there a reason for this?
public override Rect Bounds => PlatformImpl.Bounds;is not working for Direct2D render when Shape does not contain Fill. In this case Bounds calculated not properly.
LineGeometryimplemented by the same way.
Polygonis that it creates a new geometry each time
isFilledwhen it actually means
Geometry.Bounds (in WPF) is equivalent to ID2D1Geometry::GetWidenedBounds(0.0f).
Boundsand all seems to work fine, so removed the workarounds in Poly/LineGeometry.
Shapeclasses don't react to changes in their geometry, so implementing that too
DrawingContextfor example, the geometry information created by the DrawingContext is stored in the control
that would be the ideal way to do it, but it would involve a radical change to our rendering backends to generate geometry rather than draw directly
We just need some proxy backend that records drawing commands and passes them to actual renderer
HitTestCoremethod and do its own hit testing