DesignItem Class
Definition
The DesignItem connects a component with the service system and the designers. Equivalent to Cider's ModelItem.
Implements
Syntax
public abstract class DesignItem : INotifyPropertyChanged
Properties
AllSetProperties | Gets properties set on the design item. |
Component | Gets the component this DesignSite was created for. |
ComponentType | Gets the component type of this design site. This value may be different from Component.GetType() if a CustomInstanceFactory created an object using a different type (e.g. ComponentType=Window but Component.GetType()=WindowClone). |
ContentProperty | Gets the content property (the property that contains the logical children) |
ContentPropertyName | Gets the name of the content property (the property that contains the logical children) |
Context | Gets the design context. |
DepthLevel | Gets the component this DesignSite was created for. |
Extensions | Gets the extensions registered for this DesignItem. |
Key | Gets/Sets the value of the "x:Key" attribute on the design item. |
Name | Gets/Sets the name of the design item. |
Parent | Gets the parent design item. |
ParentProperty | Gets the property where this DesignItem is used as a value. |
Properties | Gets properties set on the design item. |
Services | Gets an instance that provides convenience properties for the most-used designers. |
View | Gets the view used for the component. |
Methods
AddBehavior(Type, Object) | Adds a behavior extension object to this design item. |
Clone() | Creates a copy of this design item. |
GetBehavior<T>() | Gets a behavior extension object from the design item. |
GetCompleteAppliedTransformationToView() | Gets a System.Windows.Media.Transform that represents all transforms applied to the item's view. |
OnPropertyChanged(PropertyChangedEventArgs) | Raises the PropertyChanged event. |
OpenGroup(String) | Opens a new change group used to batch several changes. ChangeGroups work as transactions and are used to support the Undo/Redo system. Note: the ChangeGroup applies to the whole DesignContext, not just to this item! |
ReapplyAllExtensions() | Reapplies all extensions. |
Remove() | Removes this design item from its parent property/collection. |
RemoveExtension(Extension) | Removes one specific Extension |
SetView(UIElement) | Set the View for a Component |
Events
NameChanged | Is raised when the name of the design item changes. |
ParentChanged | Occurs when the parent of this design item changes. |
PropertyChanged | This event is raised whenever a model property on the DesignItem changes. |