DotNetMaui.ConnectivityBanner
1.0.1
dotnet add package DotNetMaui.ConnectivityBanner --version 1.0.1
NuGet\Install-Package DotNetMaui.ConnectivityBanner -Version 1.0.1
<PackageReference Include="DotNetMaui.ConnectivityBanner" Version="1.0.1" />
<PackageVersion Include="DotNetMaui.ConnectivityBanner" Version="1.0.1" />
<PackageReference Include="DotNetMaui.ConnectivityBanner" />
paket add DotNetMaui.ConnectivityBanner --version 1.0.1
#r "nuget: DotNetMaui.ConnectivityBanner, 1.0.1"
#:package DotNetMaui.ConnectivityBanner@1.0.1
#addin nuget:?package=DotNetMaui.ConnectivityBanner&version=1.0.1
#tool nuget:?package=DotNetMaui.ConnectivityBanner&version=1.0.1
DotNetMaui.ConnectivityBanner
A lightweight animated connectivity status banner for .NET MAUI apps (.NET 8+).
This control automatically detects internet connectivity changes and shows a smooth animated banner when the device goes offline or comes back online.
Features
- Works with .NET MAUI (.NET 8+)
- Animated height-based banner (no translate glitches)
- Fully customizable via BindableProperties
- Safe lifecycle handling (no memory leaks)
- No permissions required
- Lightweight & production ready
Installation
Install via .NET CLI:
dotnet add package DotNetMaui.ConnectivityBanner
Or via Package Manager Console:
Install-Package DotNetMaui.ConnectivityBanner
Usage
- Add the namespace to your XAML page root:
xmlns:controls="clr-namespace:Maui.ConnectivityBanner.Controls;assembly=DotNetMaui.ConnectivityBanner"
- Add the banner inside a Grid so it overlays your page content:
<Grid>
<ScrollView>
<VerticalStackLayout>
<Label Text="Hello MAUI" />
</VerticalStackLayout>
</ScrollView>
<controls:ConnectivityView
VerticalOptions="Start"
ZIndex="100"
BannerHeight="60"
AnimationDuration="250"
HideDelay="3000"
OfflineText="No Internet Connection"
OnlineText="Back Online"
OfflineColor="Red"
OnlineColor="Green"
EnableAnimation="true" />
</Grid>
Customization
All public BindableProperties can be customized in XAML or C#:
| Property | Type | Default | Description |
|---|---|---|---|
BannerHeight |
double | 50 | Height of the banner |
AnimationDuration |
int | 250 | Duration of show/hide animation in ms |
HideDelay |
int | 3000 | Time banner stays visible after connection restored (ms) |
EnableAnimation |
bool | true | Enable/disable animation |
OfflineColor |
Color | Red | Banner background when offline |
OnlineColor |
Color | Green | Banner background when online |
OfflineText |
string | "Device Offline - Reconnecting..." | Text when offline |
OnlineText |
string | "Internet Restored" | Text when online |
Notes
. Always place the banner inside a Grid with VerticalOptions="Start". . Safe for multiple pages / repeated usage. . Banner automatically subscribes and unsubscribes from connectivity events. . Works on Android, iOS, MacCatalyst, and Windows. . Banner height is adjustable via BannerHeight property.
License
MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.0 is compatible. net10.0-maccatalyst26.0 is compatible. net10.0-windows10.0.19041 is compatible. |
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.1)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.1)
-
net10.0-maccatalyst26.0
- Microsoft.Maui.Controls (>= 10.0.1)
-
net10.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 97 | 1/28/2026 |