DotNetMaui.ConnectivityBanner 1.0.1

dotnet add package DotNetMaui.ConnectivityBanner --version 1.0.1
                    
NuGet\Install-Package DotNetMaui.ConnectivityBanner -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotNetMaui.ConnectivityBanner" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetMaui.ConnectivityBanner" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="DotNetMaui.ConnectivityBanner" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DotNetMaui.ConnectivityBanner --version 1.0.1
                    
#r "nuget: DotNetMaui.ConnectivityBanner, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DotNetMaui.ConnectivityBanner@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DotNetMaui.ConnectivityBanner&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=DotNetMaui.ConnectivityBanner&version=1.0.1
                    
Install as a Cake Tool

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

  1. Add the namespace to your XAML page root:
xmlns:controls="clr-namespace:Maui.ConnectivityBanner.Controls;assembly=DotNetMaui.ConnectivityBanner"
  1. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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