microsoft / xaml-standard

XAML Standard : a set of principles that drive XAML dialect alignment
Other
804 stars 50 forks source link

Add CornerRadius for Controls/Views #202

Open luizproenca opened 7 years ago

luizproenca commented 7 years ago

I'm porting some controls from uwp to forms and I see there is not a simple way to add rounded corners to controls like boxview, button, combobox, grid, views in general.

Using custom controls is really tiring.

mdtauk commented 7 years ago

If there is going to be a style/template/render engine, as part of XAML Standard - Corner Radius makes a lot of sense on all UI elements.

insinfo commented 7 years ago

I fully agree, it's very stressful to be creating custom controls for trivial things.

rodrigoelp commented 7 years ago

Especially if you want to be consistent with material/metro/whatever-microsoft-calls-it-know design.

Although, wouldn't it be better to implement Border which is the element giving you corner radius, border stroke and thickness and so on?

Duranom commented 7 years ago

It would be nice if the standard for graphical usage defines that all controls that influence layout should have it like currently in UWP Grid, RelativePanel, StackPanel, ContentPresenter (and few others controls have it as well). With controls itself I wonder if it should be done through templating or as property as you always want a bit more.

michael-hawker commented 7 years ago

I like @rodrigoelp's point. I see this akin to CSS border-radius which can be applied in a multitude of ways.

safeery2k commented 6 years ago

Its a pain. I am doing a Xamarin Forms app and supporting all 3 platforms. My client wants rounded corners on few of the frames and they look amazing on iOS and Android but guess what UWP does not support it.

michael-hawker commented 6 years ago

@safeery2k what Win 10 version are you supporting? 16299 fixed support for CornerRadius.

dotMorten commented 6 years ago

@safeery2k If you're already using Xamarin.Forms you really have no need for a XAML standard. The Forms is its own cross-platform markup already. The fact that rounded corners are ignored on one platform would be a bug in Xamarin.Forms and you should log that there.