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, ...
16. Selectors
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.