diff --git a/src/Avalonia.Controls/Shapes/Rectangle.cs b/src/Avalonia.Controls/Shapes/Rectangle.cs index 24c61747aa..969d512338 100644 --- a/src/Avalonia.Controls/Shapes/Rectangle.cs +++ b/src/Avalonia.Controls/Shapes/Rectangle.cs @@ -21,7 +21,11 @@ namespace Avalonia.Controls.Shapes static Rectangle() { - AffectsGeometry(BoundsProperty, StrokeThicknessProperty); + AffectsGeometry( + BoundsProperty, + RadiusXProperty, + RadiusYProperty, + StrokeThicknessProperty); } /// diff --git a/src/Avalonia.Visuals/Platform/IPlatformRenderInterface.cs b/src/Avalonia.Visuals/Platform/IPlatformRenderInterface.cs index acf103b893..444cc2eb8c 100644 --- a/src/Avalonia.Visuals/Platform/IPlatformRenderInterface.cs +++ b/src/Avalonia.Visuals/Platform/IPlatformRenderInterface.cs @@ -169,8 +169,12 @@ namespace Avalonia.Platform IGlyphRunImpl CreateGlyphRun(GlyphRun glyphRun); /// - /// Gets a value indicating whether the platform supports rectangles with rounded corners. + /// Gets a value indicating whether the platform directly supports rectangles with rounded corners. /// + /// + /// Some platform renderers can't directly handle rounded corners on rectangles. + /// In this case, code that requires rounded corners must generate and retain a geometry instead. + /// bool SupportsIndividualRoundRects { get; } ///