PHMauiControls 1.0.0
dotnet add package PHMauiControls --version 1.0.0
NuGet\Install-Package PHMauiControls -Version 1.0.0
<PackageReference Include="PHMauiControls" Version="1.0.0" />
<PackageVersion Include="PHMauiControls" Version="1.0.0" />
<PackageReference Include="PHMauiControls" />
paket add PHMauiControls --version 1.0.0
#r "nuget: PHMauiControls, 1.0.0"
#:package PHMauiControls@1.0.0
#addin nuget:?package=PHMauiControls&version=1.0.0
#tool nuget:?package=PHMauiControls&version=1.0.0
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 ?
Install the PHMauiControls NuGet package in your .NET MAUI project.
Initialize in your MauiProgram.cs file: ConfigurePhControls()
Add the
ExpandableLabelto 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."/>
- Customize properties like
ExpandButtonText,CollapseButtonText,MaxLines, and colors to fit your design.
| Product | Versions 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. |
-
net9.0-android35.0
- Microsoft.Maui.Controls (>= 9.0.51)
-
net9.0-ios18.0
- Microsoft.Maui.Controls (>= 9.0.51)
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 |