[]
        
(Showing Draft Content)

C1.WPF.Extended.PropertyBox

PropertyBox Class

The control used by the C1PropertyGrid to display the SelectedObject's properties.

Namespace: C1.WPF.Extended
Assembly: C1.WPF.Extended.4.6.2.dll
Syntax
[TemplatePart(Name = "Label", Type = typeof(TextBlock))]
[TemplatePart(Name = "EditorBorder", Type = typeof(Border))]
[TemplatePart(Name = "Root", Type = typeof(Grid))]
[TemplatePart(Name = "ResetButton", Type = typeof(Button))]
[TemplateVisualState(Name = "ResetButtonShown", GroupName = "ResetButtonStates")]
[TemplateVisualState(Name = "ResetButtonHidden", GroupName = "ResetButtonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
[StyleTypedProperty(Property = "LabelStyle", StyleTargetType = typeof(TextBlock))]
public class PropertyBox : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
PropertyBox()

Initializes a new instance of a PropertyBox.

Fields

Name Description
DisabledCuesVisibilityProperty

Identifies the DisabledCuesVisibility dependency property.

EditorWidthProperty

Identifies the EditorWidth dependency property.

FocusCuesVisibilityProperty

Identifies the FocusCuesVisibility dependency property.

IsFocusedProperty

Identifies the IsFocused dependency property.

LabelStyleProperty

Identifies the LabelStyle dependency property.

LabelWidthProperty

Identifies the LabelWidth dependency property.

MaxEditorWidthProperty

Identifies the MaxEditorWidth dependency property.

MaxLabelWidthProperty

Identifies the MaxLabelWidth dependency property.

MinEditorWidthProperty

Identifies the MinEditorWidth dependency property.

MinLabelWidthProperty

Identifies the MinLabelWidth dependency property.

PropertyAttributeProperty

Identifies the PropertyAttribute dependency property.

ShowResetButtonProperty

Identifies the ShowResetButton dependency property.

Properties

Name Description
AvailableEditors

The list of currently available editors to use in the C1PropertyGrid. The default list includes editors for: bool, Color, Brush, ColorPalette, Enum, Numeric, String, Image and Uri values.

CurrentEditor

Gets or sets the current editor used by this property box.

DisabledCuesVisibility

Gets or sets a value indicating whether the disabled visuals of the control are visible.

EditorWidth

Gets or sets the width of the editor.

FocusCuesVisibility

Gets or sets a value indicating whether the focus visuals of the control are visible.

IsFocused

Returns true if the control has the focus.

Label

Gets the label created for this property box.

LabelStyle

Gets or sets the Style applied to the label.

LabelWidth

Gets or sets the width of the label.

MaxEditorWidth

Gets or sets the maximum width of the editor.

MaxLabelWidth

Gets or sets the maximum width of the label.

MinEditorWidth

Gets or sets the minimum width of the editor.

MinLabelWidth

Gets or sets the minimum width of the label.

Panel

Gets the panel that contains the label and the editor of the property box.

Parents

Get Parents

PropertyAttribute

Gets or sets the property attribute used to configure the PropertyBox.

ResetButton

Gets the button that resets the property values.

ShowResetButton

Gets or sets a value indicating whether the reset button is shown.

Methods

Name Description
ArrangeOverride(Size)

Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior.

ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

ChangeVisualStateFocus(bool)

Updates the current visual state of the Focus visual state group to match the object's properties.

ChangeVisualStateResetButton(bool)

Updates the current visual state of the ResetButton visual state group to match the object's properties.

MeasureOverride(Size)

Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.

OnApplyTemplate()

Builds the visual tree for the PropertyBox control when a new template is applied.

OnCreateAutomationPeer()

Gets an AutomationPeer object used for testing the control.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property has been updated.

ResetValue()

Resets the value.

Events

Name Description
IsMouseOverChanged

Event raised when the IsMouseOver property has changed.

PropertyReset

Fired when a property value gets reset.

PropertyResetting

Fired before a property value gets reset.

ValueChanged

Fired when the value of a property in the current SelectedObject changes.