Table of Contents

Class PropertyNode

Namespace
Alternet.FormDesigner.Wpf
Assembly
Alternet.FormDesigner.Wpf.v10.dll

View-Model class for the property grid.

public class PropertyNode : INotifyPropertyChanged
Inheritance
PropertyNode
Implements

Constructors

PropertyNode()

Creates a new PropertyNode instance.

Properties

CanReset

Gets whether resetting the property is possible.

Category

Gets the category of this node.

Children

Gets the list of child nodes.

Context

Gets the design context associated with this set of properties.

Description

Gets the description object using the IPropertyDescriptionService.

Editor

Gets the editor control that edits this property.

FirstProperty

Gets the first property (equivalent to Properties[0])

HasChildren

Gets whether this property node has children.

IsAmbiguous

Gets whether the property value is ambiguous (multiple controls having different values are selected).

IsEnabled

Gets whether the property node is enabled for editing.

IsEvent

Gets if this property node represents an event.

IsExpanded

Gets whether this property node is currently expanded.

IsSet

Gets whether this property was set locally.

IsVisible

Gets/Sets whether the property is visible.

Level

For nested property nodes, gets the level of this node.

MoreChildren

Gets the list of advanced child nodes (not visible by default).

Name

Gets the name of the property.

NameForeground

Gets the color of the name. Depends on the type of the value (binding/resource/etc.)

Parent

For nested property nodes, gets the parent node.

Properties

Gets the properties that are presented by this node. This might be multiple properties if multiple controls are selected.

Services

Gets the service container associated with this set of properties.

Value

Gets/Sets the value of this property.

ValueItem

Returns the DesignItem that owns the property (= the DesignItem that is currently selected). Returns null if multiple DesignItems are selected.

ValueString

Gets/Sets the value of this property in string form

Methods

CreateBinding()

Replaces the value of this node with a new binding.

Load(DesignItemProperty[])

Initializes this property node with the specified properties.

RegisterCustomValueGetter(string, Type, Func<DesignItemProperty, object>, Type)

Register custom getter method for the given property.

Reset()

Resets the property.

UnregisterCustomValueGetter(string, Type, Type)

Removes custom getter method for the given property.

Events

PropertyChanged

Occurs when a property has changed. Used to support WPF data binding.