An Interest In:
Web News this Week
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
June 17, 2021 08:57 am GMT
Original Link: https://dev.to/fanmixco/how-to-create-a-simple-floating-button-with-xamarin-forms-maui-4k7i
How to create a simple Floating Button with Xamarin.Forms/MAUI
For a while, I have been trying to search how to create a simple Floating Button and this is my final code:
<AbsoluteLayout> <!--Other components--> <ImageButton Source="plus.png" BackgroundColor="Green" CornerRadius="80" AbsoluteLayout.LayoutFlags="PositionProportional" AbsoluteLayout.LayoutBounds=".95,.95,80,80" /></AbsoluteLayout>
- The
Source
is the picture you want to use. - The
BackgroundColor
is the color you want to use in HEX. - The
CornerRadius
is to create the form. - The
AbsoluteLayout.LayoutBounds
is the location.
This will be the result:
You can get the icon from:
https://materialdesignicons.com
And I got some inspiration from here:
Original Link: https://dev.to/fanmixco/how-to-create-a-simple-floating-button-with-xamarin-forms-maui-4k7i
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To