liveBook · Manning

Stepper

As explained in .NET MAUI in Action

Stepper is a .NET MAUI control that lets a user adjust a numeric value using increment and decrement controls.

Stepper is a .NET MAUI control for adjusting a numeric value with increment and decrement controls. It fits naturally where a user records a quantity, such as the number of items counted during stock-taking. section 9.5.3

A practical layout pairs the Stepper with a Label that displays the current count. Bind both controls to the same Count property so the visible number and the adjustable value represent one piece of data.

Counting products

In a stock-taking page, place the count Label in one Grid row and the Stepper in the next. Bind the Label's Text and the Stepper's Value to Count, then let an Add count Button trigger the save operation.

How .NET MAUI in Action covers it

How deep it goes
Shows placement, alignment, Grid rows, and Value binding, but does not detail range or increment configuration.
Examples
Uses a product-counting page with a Count label, Stepper, and Add count button.
What it assumes
Assumes basic XAML layout and binding knowledge while demonstrating the control in an MVVM page.
What you can do after
Build it from scratch by placing a Stepper in a Grid and binding its Value to a quantity property.
How it connects
Connects Stepper to XAML data binding, Label, Grid layout, Button commands, and the MVVM pattern.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of .NET MAUI in Action. The section links point to the parts of the book it draws on.