Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Border has no Background on Android, iOS is fine #7356

Closed
AndreasReitberger opened this issue May 20, 2022 · 1 comment
Closed

Border has no Background on Android, iOS is fine #7356

AndreasReitberger opened this issue May 20, 2022 · 1 comment
Assignees
Labels
area/drawing ✏️ Shapes, Borders, Shadows, Graphics, custom drawing platform/android 🤖 s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working

Comments

@AndreasReitberger
Copy link

Description

I'm using a Border control for the WelcomePage.
On iOS, the BackgroundColor set in the Style is applied.

However on Android not.

XAML

<Border
      Style="{StaticResource CardViewBorderStyle}"
      Margin="20,5"
      Grid.Row="1"
      >
</Border>
<Style x:Key="CardViewBorderStyle" TargetType="Border">
        <Setter Property="StrokeShape">
            <Setter.Value>
                <RoundRectangle CornerRadius="30" />
            </Setter.Value>
        </Setter>
        <Setter Property="StrokeThickness" Value="1"/>
        <Setter Property="Shadow" Value="{StaticResource CardViewShadowStyle}"/>
        <Setter Property="BackgroundColor" Value="{DynamicResource Gray-100}"/>
    </Style>

    <Color x:Key="Gray-100">#F5F5F5</Color>

Simulator Screen Shot - iPhone SE (3rd generation) - 2022-05-20 at 08 38 10

Screenshot_1653027380

Steps to Reproduce

  1. Create a Border control and apply the Style
  2. Run on iOS and Android

Version with bug

Release Candidate 3 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11

Did you find any workaround?

No response

Relevant log output

No response

@AndreasReitberger AndreasReitberger added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels May 20, 2022
@jsuarezruiz jsuarezruiz self-assigned this May 20, 2022
@jsuarezruiz jsuarezruiz added the area/drawing ✏️ Shapes, Borders, Shadows, Graphics, custom drawing label May 20, 2022
@jsuarezruiz
Copy link
Contributor

This issue have been fixed by #7247
Screenshot_1653042576
Will be available in the next release (GA).

For now, as workaround, just set the Stroke with the same color used in the Background.

@dotnet dotnet locked as resolved and limited conversation to collaborators Jun 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/drawing ✏️ Shapes, Borders, Shadows, Graphics, custom drawing platform/android 🤖 s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants