[]
        
(Showing Draft Content)

C1.WPF.PropertyGrid.C1PropertyGrid

C1PropertyGrid Class

The property-grid provides a user interface for browsing the properties of an object.

Inheritance
C1PropertyGrid
Namespace: C1.WPF.PropertyGrid
Assembly: C1.WPF.PropertyGrid.dll
Syntax
[StyleTypedProperty(Property = "LabelStyle", StyleTargetType = typeof(TextBlock))]
[StyleTypedProperty(Property = "CategoryStyle", StyleTargetType = typeof(Control))]
[StyleTypedProperty(Property = "ScrollBarStyle", StyleTargetType = typeof(ScrollBar))]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[StyleTypedProperty(Property = "FilterAreaStyle", StyleTargetType = typeof(C1Border))]
[StyleTypedProperty(Property = "FilterTextBoxStyle", StyleTargetType = typeof(TextBox))]
[StyleTypedProperty(Property = "FilterIconStyle", StyleTargetType = typeof(ContentControl))]
[StyleTypedProperty(Property = "DescriptionAreaStyle", StyleTargetType = typeof(C1Border))]
[StyleTypedProperty(Property = "DescriptionLabelStyle", StyleTargetType = typeof(TextBlock))]
[StyleTypedProperty(Property = "PopupStyle", StyleTargetType = typeof(C1PopupBorder))]
[TemplatePart(Name = "Grid", Type = typeof(C1GridControl))]
[TemplatePart(Name = "DescriptionArea", Type = typeof(C1Border))]
[TemplatePart(Name = "Description", Type = typeof(TextBlock))]
[TemplatePart(Name = "FilterArea", Type = typeof(C1Border))]
[TemplatePart(Name = "Filter", Type = typeof(C1TextBox))]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
public class C1PropertyGrid : C1View

Constructors

Name Description
C1PropertyGrid()

Initializes a new instance of the C1PropertyGrid class.

Fields

Name Description
AutoGeneratePropertiesProperty

Identifies the AutoGenerateProperties dependency property.

CategoryStyleProperty

Identifies the CategoryStyle dependency property.

DefaultCategoryNameProperty

Identifies the DefaultCategoryName dependency property.

DescriptionAreaStyleProperty

Identifies the DescriptionAreaStyle dependency property.

DescriptionLabelStyleProperty

Identifies the DescriptionLabelStyle dependency property.

EditorBackgroundProperty

Identifies the EditorBackground dependency property.

EditorBorderBrushProperty

Identifies the EditorBorderBrush dependency property.

EditorBorderThicknessProperty

Identifies the EditorBorderThickness dependency property.

EditorCornerRadiusProperty

Identifies the EditorCornerRadius dependency property.

EditorForegroundProperty

Identifies the EditorForeground dependency property.

EditorMarginProperty

Identifies the EditorMargin dependency property.

EditorPaddingProperty

Identifies the EditorPadding dependency property.

EditorWidthProperty

Identifies the EditorWidth dependency property.

FilterAreaStyleProperty

Identifies the FilterAreaStyle dependency property.

FilterIconStyleProperty

Identifies the FilterIconStyle dependency property.

FilterIconTemplateProperty

Identifies the FilterIconTemplate dependency property.

FilterTextBoxStyleProperty

Identifies the FilterTextBoxStyle dependency property.

GridLinesBrushProperty

Identifies the GridLinesBrush dependency property.

GridLinesVisibilityProperty

Identifies the GridLinesVisibility dependency property.

GridLinesWidthProperty

Identifies the GridLinesWidth dependency property.

HorizontalScrollBarVisibilityProperty

Identifies the HorizontalScrollBarVisibility 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.

PopupStyleProperty

Identifies the PopupStyle dependency property.

PropertySortProperty

Identifies the PropertySort dependency property.

ScrollBarStyleProperty

Identifies the ScrollBarStyle dependency property.

SelectedObjectProperty

Identifies the SelectedObject dependency property.

ShowDescriptionProperty

Identifies the ShowDescription dependency property.

ShowFilterProperty

Identifies the ShowFilter dependency property.

ShowResetButtonProperty

Identifies the ShowResetButton dependency property.

ValidationDecoratorStyleProperty

Identifies the ValidationDecoratorStyle dependency property.

VerticalScrollBarVisibilityProperty

Identifies the VerticalScrollBarVisibility dependency property.

Properties

Name Description
AutoGenerateProperties

Gets or sets a value indicating whether the C1PropertyGrid should try to get the properties of the SelectedObject using reflection.

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.

CategoryStyle

Gets or sets the Style used for the category container.

DefaultCategoryName

Gets or sets the name used for the default category in which the properties are placed.

DescriptionAreaStyle

Gets or sets the style applied to the description area.

DescriptionLabelStyle

Gets or sets the style applied to the description label.

EditorBackground

Gets or sets the background applied to the editors.

EditorBorderBrush

Gets or sets the brush applied to the borders of the editors.

EditorBorderThickness

Gets or sets the thickness of the editor's borders.

EditorCornerRadius

Gets or sets the corner-radius applied to the borders of the editors.

EditorForeground

Gets or sets the foreground applied to the editors.

EditorMargin

Gets or sets the margin that will be applied to the editors.

EditorPadding

Gets or sets the padding that will be applied to the editors.

EditorWidth

Gets or sets the width of generated editors for the SelectedObject's properties.

FilterAreaStyle

Gets or sets the style applied to the filter area.

FilterIconStyle

Gets or sets the style applied to the filter icon.

FilterIconTemplate

Gets or sets the icon template applied to the filter icon.

FilterTextBoxStyle

Gets or sets the style applied to the filter text-box.

GridLinesBrush

Gets or sets the color of the grid lines.

GridLinesVisibility

Gets or sets the visibility of the grid lines.

GridLinesWidth

Gets or sets the thickness of the grid lines.

HorizontalScrollBarVisibility

Gets or sets the horizontal scroll bar visibility.

IsFocused

Gets whether the control is focused.

LabelStyle

Gets or sets the Style applied to all the generated labels for the SelectedObject's properties.

LabelWidth

Gets or sets the width of generated labels for the SelectedObject's properties.

MaxEditorWidth

Gets or sets the maximum width of generated editors for the SelectedObject's properties.

MaxLabelWidth

Gets or sets the maximum width of generated labels for the SelectedObject's properties.

MinEditorWidth

Gets or sets the minimum width of generated editors for the SelectedObject's properties.

MinLabelWidth

Gets or sets the minimum width of generated labels for the SelectedObject's properties.

PopupStyle

Gets or sets the style applied to the editors popup.

PropertyAttributes

Gets the list of property attributes used to configure the visualization of the SelectedObject's properties.

PropertyGroups

Gets the property groups displayed in the grid.

PropertySort

Gets or sets the type of sorting the PropertyGrid uses to display properties.

ScrollBarStyle

Gets or set the style that will be applied to the scrollbars.

SelectedObject

Gets or sets the object for which the C1PropertyGrid displays properties.

SelectedObjects

Gets the objects for which the C1PropertyGrid displays properties.

ShowDescription

Gets or sets a value indicating whether the 'Description' of the properties will be shown.

ShowFilter

Gets or sets a value indicating whether the a filter box is shown to allow filtering the properties.

ShowResetButton

Gets or sets a value indicating whether the reset button will be shown in all the property boxes.

ValidationDecoratorStyle

Gets or sets the style applied to the error tooltips.

VerticalScrollBarVisibility

Gets or sets the vertical scroll bar visibility.

Methods

Name Description
ChangeVisualStateCommon(bool)

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

Dispose(bool)
OnApplyTemplate()
OnAutoGeneratingProperty(PropertyGridAttributeAutoGeneratingEventArgs)

Called when a property attribute is being generated.

OnFontChanged()
OnGotFocus(RoutedEventArgs)
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
OnPreviewKeyDown(KeyEventArgs)

Events

Name Description
AutoGeneratingPropertyAttribute

Occurs when a property attribute is being generated.

LabelWidthChanged

Event raised when the LabelWidth property has changed.

ValueChanged

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