This repository was archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Spec: Visual #4435
Comments
So is this somehow supposed to be complementary to Shell/Material Shell spec? |
should this launch come only in 2019? |
@AmrAlSayed0 it is how we will support things like MaterialShell, yes. This works independent of Shell. @andersondamasio we will have a preview available in a few weeks. When I get to my desk I will share some screenshots of the progress to see what everyone thinks. |
3 tasks
Added Button Icon APIs. Comments are welcome |
I think we'll go ahead and close this spec. We'll track remaining work on the sub issues linked above. Thanks!! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Rationale
Customers desire to more easily create Xamarin.Forms applications that look mostly or exactly the same by default on iOS and Android. In examining the style of design that is most typically implemented, Material design is the most beneficial starting point.
Developers should be able to express their design for this starting point at the top level of their Xamarin.Forms application, and have that preference reflected throughout.
Developers should be able to also control this preference at the ContentPage and control levell.
In the future, additional Visual styles may be supported, such as Cupertino, Fluent, or any other design styling that someone would wish to implement themselves.
Goals
Stretch Goals
Limitations
Implementation
Branch working from
Example Renderer
Example CSS
At Renderer selection time the Visual property of the View is inspected and included in the renderer selection process. When the Visual changes the Renderer is recreated from scratch along with any children. The SupportsVisualTypes property on the renderer is tested
IVisual
is nothing more than a marker interface used at renderer selection time. For something like a skia backend you would then use an attached property to attach the drawing to the visual. This API gives us maximum flexibility.Implementation Notes
Currently just creating new renderers for material components
iOS
https://www.nuget.org/packages/Xamarin.iOS.MaterialComponents/
Android
The text was updated successfully, but these errors were encountered: