Skip to content

Commit 9b06092

Browse files
committed
Floating Button
1 parent 9ab4651 commit 9b06092

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

content/blog/maui/float-button.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: "Bottom right float button"
3+
author: "PrashantUnity"
4+
weight: 106
5+
date: 2025-06-19
6+
lastmod: 2024-06-19
7+
dateString: July 2025
8+
description: "Code snippet for maui Bottom right float button"
9+
#canonicalURL: "https://canonical.url/to/page"
10+
cover:
11+
image: "cover.jpg" # image path/url
12+
alt: "Download Logo" # alt text
13+
#caption: "Optical Character Recognition" display caption under cover
14+
15+
tags: [ "NET", "codefrydev", "C sharp", "CFD","maui" , "layout","absolute"]
16+
keywords: [ "NET", "codefrydev", "C sharp", "CFD","maui" , "layout"]
17+
---
18+
19+
## Code Snippet
20+
21+
```xml
22+
<AbsoluteLayout>
23+
24+
<Grid AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All" >
25+
<Grid>
26+
27+
<Border
28+
StrokeShape="RoundRectangle 30"
29+
HeightRequest="60"
30+
WidthRequest="60"
31+
BackgroundColor="Black"
32+
AbsoluteLayout.LayoutBounds="1, 1, AutoSize, AutoSize"
33+
AbsoluteLayout.LayoutFlags="PositionProportional"
34+
TranslationX="-30"
35+
TranslationY="-30"
36+
>
37+
<Border.GestureRecognizers>
38+
<TapGestureRecognizer Tapped="AddButton_Clicked" />
39+
</Border.GestureRecognizers>
40+
<Label Text=""
41+
TextColor="White"
42+
VerticalOptions="Center"
43+
HorizontalOptions="Center"
44+
FontSize="25"/>
45+
</Border>
46+
</AbsoluteLayout>
47+
```

0 commit comments

Comments
 (0)