TrueTechSoftware.MauiMasonry.Core 0.1.0

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

MauiMasonry

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 net10.0 Pure .NET library containing IMasonryViewItem and MasonryLayoutCalculator so DTOs and ViewModels can implement item contracts without a .NET MAUI UI dependency.
TrueTechSoftware.MauiMasonry net10.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 PrintableDto : 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:PrintableDto">
                <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 net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on TrueTechSoftware.MauiMasonry.Core:

Package Downloads
TrueTechSoftware.MauiMasonry

A lightweight, performant .NET MAUI control for building Pinterest-style staggered masonry grids with item virtualization.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.6 51 11/20/2026
0.1.5 105 11/11/2026
0.1.4 106 11/5/2026
0.1.3 97 11/4/2026
0.1.2 96 11/4/2026
0.1.1 152 11/4/2026
0.1.0 107 11/4/2026