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

Using Border throws with a shape of Rectangle #3349

Closed
mattleibow opened this issue Nov 10, 2021 · 1 comment · Fixed by #3588
Closed

Using Border throws with a shape of Rectangle #3349

mattleibow opened this issue Nov 10, 2021 · 1 comment · Fixed by #3588
Assignees
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-6.0.101-preview.11.3 Look for this fix in 6.0.101-preview.11.3! fixed-in-6.0.200-preview.12 Look for this fix in 6.0.200-preview.12! platform/windows 🪟 t/bug Something isn't working

Comments

@mattleibow
Copy link
Member

mattleibow commented Nov 10, 2021

Description

Not sure why the Border API is making it hard to figure it out, but I added a <Border> to my UI and it does nothing. So I added a Stroke=Red and Thickness=10 but nothing appeared.

I then set StrokeShape=Rectangle and got this:

Microsoft.Maui.Controls.Xaml.XamlParseException: 'Position 14:51. Type converter failed: Cannot convert "Rectangle" into Microsoft.Maui.Controls.Shapes.RoundRectangle'

I then set an actual RoundRectangle element, but nothing appeared.

I know this is mainly me not doing any reading of the API, but the fact it did not come to me means that it probably needs some better defaults.

@mattleibow mattleibow added the t/bug Something isn't working label Nov 10, 2021
@mattleibow
Copy link
Member Author

Seems that the border does not appear if there is no background.

@mattleibow mattleibow added platform/windows 🪟 area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing labels Nov 10, 2021
@jsuarezruiz jsuarezruiz self-assigned this Nov 11, 2021
@hartez hartez self-assigned this Nov 11, 2021
@hartez hartez added the fatal label Nov 29, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Feb 18, 2022
@samhouts samhouts added fixed-in-6.0.101-preview.11.3 Look for this fix in 6.0.101-preview.11.3! fixed-in-6.0.200-preview.12 Look for this fix in 6.0.200-preview.12! labels Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-6.0.101-preview.11.3 Look for this fix in 6.0.101-preview.11.3! fixed-in-6.0.200-preview.12 Look for this fix in 6.0.200-preview.12! platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants