[]
The property-grid provides a user interface for browsing the properties of an object.
[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
| Name | Description |
|---|---|
| C1PropertyGrid() | Initializes a new instance of the C1PropertyGrid class. |
| 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. |
| 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) |
| 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. |