AdsMauiControl 1.0.2

dotnet add package AdsMauiControl --version 1.0.2
                    
NuGet\Install-Package AdsMauiControl -Version 1.0.2
                    
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="AdsMauiControl" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AdsMauiControl" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="AdsMauiControl" />
                    
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 AdsMauiControl --version 1.0.2
                    
#r "nuget: AdsMauiControl, 1.0.2"
                    
#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 AdsMauiControl@1.0.2
                    
#: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=AdsMauiControl&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=AdsMauiControl&version=1.0.2
                    
Install as a Cake Tool

AdsMauiControl

Banner control per .NET MAUI dalla rete pubblicitaria 8BitsAds.
Dimensioni standard 728 × 90 (leaderboard orizzontale) e 90 × 728 (verticale), pronto per XAML e MVVM.


Installazione

dotnet add package AdsMauiControl

oppure tramite NuGet Package Manager in Visual Studio.


Configurazione

Registra le credenziali 8BitsAds nella tua app (es. MauiProgram.cs):

// Non è richiesta nessuna inizializzazione globale.
// AccountId e ApplicationId si impostano direttamente sul controllo.

Utilizzo in XAML

Aggiungi il namespace nella tua pagina:

xmlns:ads="clr-namespace:AdsMauiControl.Views;assembly=AdsMauiControl"

Poi inserisci il controllo:


<ads:Leaderboard
    AccountId="ACC-123456"
    ApplicationId="APP-789ABC" />


<ads:Leaderboard
    AccountId="ACC-123456"
    ApplicationId="APP-789ABC"
    Orientation="Vertical" />


<ads:Leaderboard
    AccountId="ACC-123456"
    ApplicationId="APP-789ABC"
    Orientation="Horizontal"
    Text="Il tuo messaggio"
    BannerColor="#0D0D0D"
    TextColor="#FFD700"
    AccentColor="#FF4500"
    FontSize="20" />

Proprietà

Proprietà Tipo Default Descrizione
AccountId string "" Il tuo Account ID su 8BitsAds
ApplicationId string "" L'Application ID del banner
Orientation BannerOrientation Horizontal Horizontal (728×90) o Vertical (90×728)
Text string "Hello World!" Testo visualizzato nel banner
BannerColor Color #1A1A2E Colore di sfondo
TextColor Color #E0E0FF Colore del testo
AccentColor Color #7B61FF Colore della striscia laterale
FontSize double 22 Dimensione del testo

Tutte le proprietà supportano il data binding:

<ads:Leaderboard
    AccountId="{Binding MyAccountId}"
    ApplicationId="{Binding MyAppId}"
    Orientation="{Binding BannerOrientation}"
    Text="{Binding BannerText}" />

Watermark 8BitsAds

Il controllo mostra un piccolo watermark discreto in basso a destra con il logo 8BitsAds.
Al passaggio del mouse diventa più visibile e porta direttamente a www.8bitsads.com.
Il watermark non è rimovibile ed è parte integrante del servizio.


Piattaforme supportate

Piattaforma Supportata
Android ✅ API 21+
iOS ✅ 15.0+
macOS Catalyst ✅ 15.0+
Windows ✅ 10.0.19041+

Licenza

MIT © 2025 8BitsAds

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.2 133 3/18/2026
1.0.1 113 3/18/2026
1.0.0 117 3/18/2026