From 928cb35fcaef6f3fd3e2fab7aff1d18209867bf1 Mon Sep 17 00:00:00 2001 From: robloo Date: Mon, 4 Apr 2022 16:32:29 -0400 Subject: [PATCH] Update after review --- src/Avalonia.Controls/Shapes/Rectangle.cs | 6 +++++- src/Avalonia.Visuals/Platform/IPlatformRenderInterface.cs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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; } ///