You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
This means all shapes have a stroke thickness and you have to set either a global style to remove it or set property to zero on every shape!
Wouldn't be better if it's the other way around? Not all shapes always need a stroke. Having StrokeThickness 0 as default would be consistent with BorderWidth (for controls which have it) which has 0 as default. Why should BorderWidth be zero and StrokeThickness 1?
Description
The
Shape.StrokeThickness
property has default value of 1.0https://github.com/xamarin/Xamarin.Forms/blob/main/Xamarin.Forms.Core/Shapes/Shape.cs#L16
This means all shapes have a stroke thickness and you have to set either a global style to remove it or set property to zero on every shape!
Wouldn't be better if it's the other way around? Not all shapes always need a stroke. Having StrokeThickness 0 as default would be consistent with BorderWidth (for controls which have it) which has 0 as default. Why should BorderWidth be zero and StrokeThickness 1?
In UWP and WinUI, the default StrokeThickness is 0.
https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.shapes.shape.strokethickness?view=winrt-19041
In WPF, it's 1, but I think they realized it and hence it changed in UWP and WinUI
The text was updated successfully, but these errors were encountered: