-
Notifications
You must be signed in to change notification settings - Fork 260
Selection Property Editing Context
Property editors show properties for selected items, so property editing is context dependent. The key interface for contexts is ISelectionContext, which provides properties and methods to get the selected items and last selected item, change the selection, and so forth. ISelectionContext also provides events for selection changes: SelectionChanging and SelectionChanged. Raising these events allows selections to be tracked and the properties of selected items obtained for property editors.
The SelectionPropertyEditingContext class supports property editing on any ISelectionContext. SelectionPropertyEditingContext implements IPropertyEditingContext, which is for contexts in which properties can be edited by controls, such as PropertyGrid and GridControl, on which the components PropertyEditor and GridPropertyEditor are built.
IPropertyEditingContext defines two properties:
-
Items: Get an enumeration (IEnumerable<object>) of the selected items that have editable properties. -
PropertyDescriptors: Get an enumeration (IEnumerable<PropertyDescriptor>) of the property descriptors for selected items. These are the property descriptors common to all items in the selection.
ISelectionContext interface are raised.
Thus the context can provide a collection of property descriptors whose properties all apply to the current selection. Each property descriptor, in turn, provides all the information needed to edit its property.
- Using Properties in ATF: Overview of the ATF property editing process.
-
Selection Property Editing Context: How the
SelectionPropertyEditingContextclass is used in editing properties. -
Property Descriptors: Discusses various kinds of
PropertyDescriptorclasses and how they are created from constructors or XML Schema annotations. - Value Editors: Types of value editors and how they are implemented.
- Value Editors and Value Editing Controls: Survey of the various kinds of ATF value editors and their associated value controls.
- Value Converters: How value converters convert values between value editors and value controls.
- Property Editor Components: Discussion of widely used ATF property editor components.
- Implementing a Property Editor: How to implement a property editor.
- 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