-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Spec] Shadows #9
Comments
Looks great! |
Awesome! I really would like to see this feature. However, I think we can take the opportunity to improve this a little more by adding gradient shadow capabilities. As @jsuarezruiz mentioned it here: #11 My recommendation is to enhance the "Color" property to use the new "Brushes" for gradients and solid colors. Sample
What do you think? |
What about the color and offset of shadows on android (it is a well known limitation)? If shadows will be implemented as in Sharpnado.Shadows then i'm looking forward to this feature, otherwise - it is quite useless |
I am very surprised that a basic feature as shadows for layouts and controls hasn't been a part of Xamarin.Forms, but I am glad it's going to be added to .NET MAUI. |
Already implemented in Preview 9. |
Shadows
Shadows create visual cues in the interface, which helps the human brain differentiate the UI element that the user sees. And, this the reason why actually mobile designers favor incorporating shadows in their designs.
API
The DropShadow class provides means of creating a configurable shadow that can be applied to a Layout.
Properties
Scenarios
Let's see an example using C #, XAML and CSS.
C# Example
XAML Example
CSS Example
Backward Compatibility
We already have shadows in some of the Xamarin.Forms Layouts. Frame's HasShadow property would become deprecated (it could still be used, although the use of the Shadow property would be recommended).
Scope
In this Spec, we add shadows to the different Xamarin.Forms Layouts. Specific controls, such as a Label, do not fall within the scope (they could come later).
Difficulty : Medium
The text was updated successfully, but these errors were encountered: