dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.25k stars 1.76k forks source link

Frame/Border/Shadow should have Elevation property #6233

Open SarthakGz opened 2 years ago

SarthakGz commented 2 years ago

Description

Frame/Border/Shadow should have Elevation property.Using combination of these three control after adding elevation property we can match Flutter Container widget which seem highly customisable and one of the most used widget in any UI.

I think PancakeView used to have all three properties i.e Elevation,Shadow,Border but unfortunately it is no longer maintained Also MAUI framework should provide this out of the box rather then need for custom control to achieve good looking UI

Not sure if it can be added to IView

I think Shadow Radius property does the same thing that Elevation property would do under the hood but isn't Shadow Radius property is confusing. Elevation sounds right to me

Public API Changes

var frame= new Frame();
frame.Elevation = 10;

Same can be for Border/Shadow

Intended Use-Case

To control the elevation of frame having shadow and border

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.