TrueTechSoftware.MauiMasonry 0.1.6

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

MauiMasonry

CI & Publish NuGet Packages NuGet NuGet Core License: MIT

A lightweight, performant .NET MAUI control for building Pinterest-style staggered masonry grids on Android and iOS. Features deterministic aspect-ratio sizing, shortest-column-first placement, configurable column counts (2–4), smooth scrolling, and viewport item virtualization with view recycling.

Packages

Package Target Frameworks Description
TrueTechSoftware.MauiMasonry.Core net11.0 Pure .NET library containing IMasonryViewItem and MasonryLayoutCalculator so DTOs and ViewModels can implement item contracts without a .NET MAUI UI dependency.
TrueTechSoftware.MauiMasonry net11.0 The .NET MAUI MasonryView control with DataTemplate support, empty-state templates, and viewport virtualization.

Quick Start

1. Implement IMasonryViewItem on your data model

using MauiMasonry.Core;

public class PhotoDto : IMasonryViewItem
{
    public required string Title { get; set; }
    public string? ThumbnailUrl { get; set; }

    // Width / Height ratio (must be finite and > 0)
    public required double AspectRatio { get; set; }
}

2. Use MasonryView in XAML

<ContentPage
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:masonry="http://schemas.truetechsoftware.com/dotnet/2026/mauimasonry">

    <masonry:MasonryView
        ItemsSource="{Binding Results}"
        ColumnCount="2"
        ColumnSpacing="10"
        RowSpacing="10">

        <masonry:MasonryView.ItemTemplate>
            <DataTemplate x:DataType="models:PhotoDto">
                <Border Padding="0">
                    <Image Aspect="AspectFill" Source="{Binding ThumbnailUrl}" />
                </Border>
            </DataTemplate>
        </masonry:MasonryView.ItemTemplate>

        <masonry:MasonryView.EmptyViewTemplate>
            <DataTemplate>
                <Label Text="No items found." HorizontalOptions="Center" VerticalOptions="Center" />
            </DataTemplate>
        </masonry:MasonryView.EmptyViewTemplate>

    </masonry:MasonryView>
</ContentPage>

Bindable Properties

Property Type Default Description
ItemsSource IEnumerable null Collection of IMasonryViewItem items (supports INotifyCollectionChanged).
ItemTemplate DataTemplate null DataTemplate or DataTemplateSelector used to render each item inside its aspect-ratio box.
EmptyView object null View or data displayed when ItemsSource is null or empty.
EmptyViewTemplate DataTemplate null DataTemplate used to render the empty state.
ColumnCount int 2 Number of columns (2 to 4 inclusive; throws ArgumentOutOfRangeException outside range).
ColumnSpacing double 10.0 Horizontal spacing between columns in device-independent units.
RowSpacing double 10.0 Vertical spacing between stacked items in a column in device-independent units.
Product Compatible and additional computed target framework versions.
.NET net11.0 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
0.1.6 46 11/20/2026
0.1.5 95 11/11/2026
0.1.4 93 11/5/2026
0.1.3 96 11/4/2026
0.1.2 84 11/4/2026
0.1.1 98 11/4/2026
0.1.0 92 11/4/2026