PHMauiControls 1.0.0

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

PHMauiControls delivers a simple, focused ExpandableLabel for Android and iOS in .NET MAUI, enabling clean handling of lengthy text with an intuitive �More / Less� toggle. Drop it into your layouts to immediately improve text presentation.

How to use ?

  1. Install the PHMauiControls NuGet package in your .NET MAUI project.

  2. Initialize in your MauiProgram.cs file: ConfigurePhControls()

  3. Add the ExpandableLabel to your XAML or C# code.

<controls:ExpandableLabel ExpandButtonText="Read More" Grid.Row="1" CollapseButtonText="Read less" Margin="8" FontSize="14" HorizontalOptions="Start" HorizontalTextAlignment="Start" FontWeight="FontWeight300" FontAttributes="None" FontFamily="OpenSansRegular" TextDecorations="None" TextColor="Green" ExpandCollapseButtonColor="Red" MaxLines="2" Text="This is a very long text that needs to be truncated and expanded. It contains multiple lines of information that are not visible initially. Clicking 'More' will reveal the full content, and 'Less' will hide it again."/>

  1. Customize properties like ExpandButtonText, CollapseButtonText, MaxLines, and colors to fit your design.
Product Compatible and additional computed target framework versions.
.NET net9.0-android35.0 is compatible.  net9.0-ios18.0 is compatible.  net10.0-android was computed.  net10.0-ios was computed. 
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.0 213 10/27/2025