To show or hide check marks as you tap list view items, this application handles the OnItemClick event of the list view. The handler of this event shows or hides the Accessory appearance object and updates the list of selected items that the application keeps.

This application also handles the OnUpdateObjects event of the list view, where it:

Adjusts the width of the Text appearance objects, so that text does not cover the check mark in the selected items.

Sets the visibility of the Accessory of each list view item based on the list of selected items. This is necessary because the rotation resets the list items to their default appearances.