Table of Contents

Namespace UICatalog

Classes

BenchmarkResults
NumberToWords
Scenario

Base class for each demo/scenario.

To define a new scenario:

  1. Create a new .cs file in the Scenarios directory that derives from Scenario.
  2. Annotate the Scenario derived class with a ScenarioMetadata attribute specifying the scenario's name and description.
  3. Add one or more ScenarioCategory attributes to the class specifying which categories the scenario belongs to. If you don't specify a category the scenario will show up in "_All".
  4. Implement the Main() override which will be called when a user selects the scenario to run.

The UI Catalog program uses reflection to find all scenarios and adds them to the ListViews. Press ENTER to run the selected scenario. Press the default quit key to quit.

ScenarioCategory

Defines the category names used to categorize a Scenario

ScenarioMetadata

Defines the metadata (Name and Description) for a Scenario

UICatalogApp
UICatalogApp.UICatalogTopLevel

This is the main UI Catalog app view. It is run fresh when the app loads (if a Scenario has not been passed on the command line) and each time a Scenario ends.