Controls are the generic containers responsible for presenting arbitrary raw data (the model) in a visual way (the view+prefab). Showzup provides a series of useful controls, which can be skinned freely:

  • ItemControl displays a single item as a single view;
  • ListControl displays a collection of items as multiple views (potentially of different types);
  • SelectionControl extends ListControl to add current item awareness;
  • TransitionControl extends ItemControl to add visual transitions between views;
  • NavigationControl extends TransitionControl to add browser-like Back/Forward navigation support.

IPresenter

All controls implement the IPresenter interface, which allows to asynchronously present any object (model), with optional Options. Because the loading and presenting of views is asynchronous, you must always subscribe to the returned observable:

control.Present(myModelObject, options).AutoDetach().Subscribe();
Tags: