User Interface for .NET / User's Guide / Command Bars / Command Contexts Overview

In This Topic
    Command Contexts Overview
    In This Topic

    The bridge between a command abstraction and its visualizations is handled by command contexts. These are common shareable objects which hold information about how a command is visualized and what functionality it exposes. When assigned a valid context, a NCommand will delegate its Click notification to that context. That allows for multiple commands to have the same appearance and functionality.

     

    Currently Nevron UI provides the following predefined command contexts:

    Context Description
    NCommandContext Base class for all contexts. Associable with standard commands.
    NComboBoxCommandContext Predefined command context associable with NComboBoxCommand components. The FromContext method of a command object will return new NComboBoxCommand.
    NListBoxCommandContext Predefined command context associable with NListBoxCommand components. The NListBoxCommand is a  command which contains a child NControlHostCommand which hosts a NListBox control. It will always act as a drop-down command which drops a NListBox.