uno-toolkit-itemsrepeater-extensions

Add selection and incremental loading to ItemsRepeater via attached properties.

9|1|Updated Dec 10, 2024
One-click install
npx skills add https://github.com/unoplatform/studio --skill uno-toolkit-itemsrepeater-extensions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uno-toolkit-itemsrepeater-extensions
Source: https://github.com/unoplatform/studio/tree/main/plugins/uno-platform-studio/skills/uno-toolkit-itemsrepeater-extensions
Command: npx skills add https://github.com/unoplatform/studio --skill uno-toolkit-itemsrepeater-extensions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ItemsRepeater lacks built-in selection and incremental loading, so the Uno Toolkit provides attached properties to enable selection and on-scroll data loading.

Core Features & Use Cases

  • Attached properties: utu:ItemsRepeaterExtensions.SelectionMode, utu:ItemsRepeaterExtensions.SelectedItem, utu:ItemsRepeaterExtensions.SelectedItems, utu:ItemsRepeaterExtensions.SelectedIndex, utu:ItemsRepeaterExtensions.SelectedIndexes add selection capabilities to ItemsRepeater.
  • Supports ISupportIncrementalLoading on the data source for automatic page loading as the user scrolls.
  • XAML namespace: xmlns:utu="using:Uno.Toolkit.UI" to bind and consume the extensions in XAML.

Quick Start

Bind SelectedItem and SelectionMode on your ItemsRepeater using the utu namespace to enable selection and incremental loading in your list.

Frequently Asked Questions about uno-toolkit-itemsrepeater-extensions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add selection to ItemsRepeater in XAML?

You can add selection to ItemsRepeater in XAML by binding attached properties like SelectionMode, SelectedItem, and SelectedIndex from the Uno Toolkit's ItemsRepeaterExtensions. This enables single or multiple selection capabilities directly in your XAML layout.

Does ItemsRepeater support incremental loading on scroll?

Yes, ItemsRepeater supports incremental loading on scroll when your data source implements ISupportIncrementalLoading. The Uno Toolkit extensions automatically trigger page loading as the user scrolls through the ItemsRepeater list.

What XAML namespace is needed for ItemsRepeater selection extensions?

The XAML namespace needed for ItemsRepeater selection extensions is xmlns:utu="using:Uno.Toolkit.UI". Declaring this utu namespace in your XAML page allows you to bind and consume the ItemsRepeaterExtensions properties.

Can I bind multiple selected items in an ItemsRepeater?

Yes, you can bind multiple selected items in an ItemsRepeater using the utu:ItemsRepeaterExtensions.SelectedItems and utu:ItemsRepeaterExtensions.SelectedIndexes attached properties. Set SelectionMode to support multi-selection for this to work.

Why does my ItemsRepeater lack built-in selection support?

ItemsRepeater lacks built-in selection support because it is designed as a lightweight, performant layout control. The Uno Toolkit solves this by providing attached properties that inject selection and incremental loading behaviors without modifying the base control.

What is the best way to handle on-scroll data fetching in Uno Platform lists?

The best way to handle on-scroll data fetching in Uno Platform lists is combining ItemsRepeater with a data source implementing ISupportIncrementalLoading. The Uno Toolkit extensions automatically fetch subsequent data pages as users scroll to the bottom.