-
Notifications
You must be signed in to change notification settings - Fork 260
Implementing Instancing
Implement the IInstancingContext interface in a class that provides services for a context in the application. This usually means implementing other interfaces as well. As previously noted, the ISelectionContext interface must be implemented, so items can be selected in that context.
For example, the ATF Simple DOM Editor Sample implements a context for its Resources window's ListView with its EventContext class. This class implements IInstancingContext and is derived from EditingContext, which implements ISelectionContext:
public class EventContext : EditingContext,
IListView,
IItemView,
IObservableContext,
IInstancingContext,
IEnumerableContextThe ATF Simple DOM Editor Sample implements IInstancingContext in two context classes: EventContext as noted previously, and EventSequenceContext for the ListView of its main window. To see how all the IInstancingContext methods are implemented in EventContext, see IInstancingContext Interface. This also shows how the StandardEditCommands component interacts with these methods.
You can also use IInstancingContext with drag and drop editing. To learn how the ATF Simple DOM Editor Sample uses drag and drop for its editing with IInstancingContext, see the previous topic, Drag and Drop and Instancing.
- What is Instancing: Generally describes instancing, which also requires instances to be selectable.
-
IInstancingContext and IHierarchicalInsertionContext Interfaces: Discuss the
IInstancingContextinterface and its editing methods. -
StandardEditCommands and Instancing: Show how the
StandardEditCommandscomponent works with instancing. - Drag and Drop and Instancing: Explain how drag and drop is used with instancing.
- Implementing Instancing: Point to examples of implementing instancing in the ATF Simple DOM Editor Sample.
- Home
- Getting Started
- Features & Benefits
- Requirements & Dependencies
- Gallery
- Technology & Samples
- Adoption
- News
- Release Notes
- ATF Community
- Searching Documentation
- Using Documentation
- Videos
- Tutorials
- How To
- Programmer's Guide
- Reference
- Code Samples
- Documentation Files
© 2014-2015, Sony Computer Entertainment America LLC