© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
S. HoeflingGetting Started with the Uno Platform and WinUI 3https://doi.org/10.1007/978-1-4842-8248-9_16

16. Selectors

Skye Hoefling1  
(1)
Rochester, NY, USA
 

In Chapter 12 we learned about converters. In this chapter, we will be learning about selectors, which are conceptually very similar but solve a different problem. A selector is used when you are binding a collection to a list control or similar. When displaying multiple items in a list and you need to render the row differently based on the type of data in that row, you will use a selector to determine the correct DataTemplate to render. A selector will run a code block for each item in the collection, ...

Get Getting Started with the Uno Platform and WinUI 3: Hands-On Building of Cross-Platform Desktop, Mobile, and Web Applications That Can Run Anywhere now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.