Skip to content

CornerRadius should clip its children #1074

Closed

Description

@MatFillion

Current behavior

When using something like this :

<StackPanel CornerRadius="12"
      Background="Tomato"
      HorizontalAlignment="Center"
      VerticalAlignment="Center">
    <Rectangle Width="100"
         Height="100"
         Fill="Olive" />
 </StackPanel>

The Olive rectangle is clipped in Windows with Fall Creators Update and later. It was not the case in Creators Update.

Expected behavior

Olive Rectangle should be clipped

Environment

Nuget Package:
1.44.1

Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly (not tested)
  • Windows
  • Build tasks

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins

  • Resharper (version: )

Anything else we need to know?

Might be indirectly related to #652 (for android)

Possible work-around: Apply the same CornerRadius on all layers of Panels.

But the only way to apply round corners to <Image> is to use it as a ImageBrush instead Grid.Background, but this adds limitiations for the stretching options. Having this bug fixed would let use use a real Image object and let the parent panel handle the round corners.

Related work item : https://nventive.visualstudio.com/Umbrella/_workitems/edit/102336

Activity

  1. changed the title [-]CornerRadius should clip it's children[/-] [+]CornerRadius should clip its children[/+] on Jun 14, 2019
  2. added
    platform/android 🤖
    platform/ios 🍎
    platform/wasm 🌐
    kind/bug
    on Jun 19, 2019
  3. self-assigned this
    on Nov 6, 2019
  4. carldebilly commented on Jun 23, 2020

    @carldebilly
    Member

    Just checked on all platforms:

    UWP

    image

    Android

    image

    iOS

    image

    WASM

    image

    So it's fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugplatform/android 🤖platform/ios 🍎platform/wasm 🌐

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions