liveBook · Manning

SearchBar

As explained in .NET MAUI in Action

SearchBar is a .NET MAUI control that accepts search text and can expose a command for initiating a search.

SearchBar is a .NET MAUI control for entering a search term. Bind its SearchCommand to a ViewModel command, then pass the control’s Text as the command parameter so the command can search for matching products. section 9.5.3

Product search

A stock-taking page places the SearchBar above a CollectionView. Entering a product name invokes SearchProductsCommand, whose results can populate the CollectionView. section 9.5.3

How .NET MAUI in Action covers it

How deep it goes
Shows the control’s XAML placement, command binding, command-parameter binding, and placeholder, but not the command implementation.
Examples
Uses a product-search field on an input page with SearchProductsCommand and a CollectionView of matching products.
What you can do after
Build it in XAML by binding SearchCommand and passing Text through SearchCommandParameter.
How it connects
Connects SearchBar with MVVM, ViewModel commands, data binding, Grid layout, and CollectionView results.

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.