Class DesignItemProperty
- Namespace
- Alternet.FormDesigner.Wpf
- Assembly
- Alternet.FormDesigner.Wpf.v10.dll
Represents a property of a DesignItem. All changes done via the DesignItemProperty class are represented in the underlying model (e.g. XAML). All such changes are recorded in the currently running designer transaction (ChangeGroup), enabling Undo/Redo support. Warning: Changes directly done to control instances might not be reflected in the model.
public abstract class DesignItemProperty : INotifyPropertyChanged
- Inheritance
-
DesignItemProperty
- Implements
- Extension Methods
Properties
- Category
Gets the category of the property.
- CollectionElements
Gets the elements represented by the collection.
- DeclaringType
Gets the type that declares the property.
- DependencyFullName
Gets the full name of the dependency property. Returns the normal FullName if the property isn't a dependency property.
- DependencyProperty
Gets the dependency property, or null if this property does not represent a dependency property.
- DesignItem
Gets the parent design item.
- FullName
Gets the full name of the property (DeclaringType.FullName + "." + Name).
- IsAdvanced
Gets if this property is considered "advanced" and should be hidden by default in a property grid.
- IsCollection
Gets if the property represents a collection.
- IsEvent
Gets if the property represents an event.
- IsSet
Gets if the property is set on the design item.
- Name
Gets the property name.
- ReturnType
Gets the return type of the property.
- TextValue
Gets the string value of the property. This property returns null if the value is not set, or if the value is set to a non-primitive value (i.e. represented by a DesignItem, accessible through Value property).
- TypeConverter
Gets the type converter used to convert property values to/from string.
- Value
Gets the value of the property. This property returns null if the value is not set, or if the value is set to a primitive value.
- ValueOnInstance
Gets/Sets the value of the property on the designed instance. If the property is not set, this returns the default value.
- ValueOnInstanceOrView
Gets the View of the Value or the ValueOnInstance (e.g. a Content Property has a DesignItem if it's a Complex Object, if it's only a Text it only has ValueOnInstance)
Methods
- InvokeValueChanged()
Invokes the ValueChanged event.
- OnPropertyChanged(string)
Raises the Property changed Event for the specified Property
- Reset()
Resets the property value to the default, possibly removing it from the list of properties.
- SetValue(object)
Sets the value of the property.
Events
- IsSetChanged
Occurs when the value of the IsSet property changes.
- PropertyChanged
It's raised when a property value changes.
- ValueChanged
Is raised when the value of the property changes (by calling SetValue(object) or Reset()).
- ValueOnInstanceChanged
Is raised when the ValueOnInstance property changes. This event is not raised when the value is changed without going through the designer infrastructure.