[]
The C1PropertyGrid Provides a user interface for browsing the properties of an object.
[TemplatePart(Name = "Properties", Type = typeof(ItemsControl))]
[TemplatePart(Name = "Methods", Type = typeof(ItemsControl))]
[TemplatePart(Name = "Description", Type = typeof(TextBlock))]
[TemplatePart(Name = "DescriptionArea", Type = typeof(Border))]
[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))]
[StyleTypedProperty(Property = "CategoryContainerStyle", StyleTargetType = typeof(C1Expander))]
[StyleTypedProperty(Property = "ScrollBarStyle", StyleTargetType = typeof(ScrollBar))]
public class C1PropertyGrid : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
| Name | Description |
|---|---|
| C1PropertyGrid() | Initializes a new instance of a C1PropertyGrid. |
| Name | Description |
|---|---|
| AutoGenerateMethods | Gets or sets a value indicating whether the C1PropertyGrid should try to get the methods of the SelectedObject using reflection. |
| 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. |
| CategoryBackground | Gets or sets the Brush used for the category container Background. |
| CategoryContainerStyle | Gets or sets the Style applied to all the generated category containers. |
| CategoryContainers | The list of category containers (if defined) created to show each category |
| CategoryForeground | Gets or sets the Brush used for the category container Foreground. |
| DefaultCategoryName | Gets or sets the name used for the default category in which the properties are placed. |
| DisabledCuesVisibility | Gets or sets a value indicating whether the disabled visuals of the control are visible. |
| EditorPadding | Gets or sets the padding that will be applied to the PropertyBox. |
| EditorWidth | Gets or sets the width of generated editors for the SelectedObject's properties. |
| 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. |
| this[string] | Gets the C1.Silverlight.Extended.PropertyBox with the specified property name. |
| 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. |
| MethodAttributes | Gets the list of method attributes used to configure the visualization of the SelectedObject's methods. |
| MethodBoxes | Gets the MethodBoxes generated to show the SelectedObject's methods on the C1PropertyGrid. |
| MethodsPanel | Gets or sets the template that defines the panel that controls the layout of methods. |
| 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. |
| MouseOverBrush | Gets or sets the Brush used to highlight the control when it has the mouse over. |
| PressedBrush | Gets or sets the Brush used to paint a button when it is pressed. |
| PropertiesPanel | Gets or sets the template that defines the panel that controls the layout of properties. |
| PropertyAttributes | Gets the list of property attributes used to configure the visualization of the SelectedObject's properties. |
| PropertyBorderBrush | Gets or sets the brush that will be applied to the border. |
| PropertyBorderThickness | Gets or sets the thickness that will be applied to the border. |
| PropertyBoxes | Gets the PropertyBoxes generated to show the SelectedObject's properties on the C1PropertyGrid. |
| 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 or sets the objects for which the C1PropertyGrid displays properties. |
| ShowDescription | Gets or sets a value indicating whether the 'Description' of the properties will be shown. |
| ShowResetButton | Gets or sets a value indicating whether the reset button will be shown in all the property boxes. |
| Name | Description |
|---|---|
| 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. |
| GetEditorControl(string) | Gets the editor control associated to the specified property. |
| GetLabel(string) | Gets the label associated to the specified property. |
| GetMethodPresenter(string) | Returns the MethodBox created for a given method of the SelectedObject. |
| GetPropertyPresenter(string) | Returns the PropertyBox created for a given property of the SelectedObject. |
| OnApplyTemplate() | Builds the visual tree for the C1PropertyGrid 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. |
| Name | Description |
|---|---|
| AddingPropertyBox | Fired before a property box is added to the C1PropertyGrid. |
| CategoryContainerAdded | Fired when a category container is added to the C1PropertyGrid. |
| CategoryContainerRemoved | Fired when a category container is removed from the C1PropertyGrid. |
| IsMouseOverChanged | Event raised when the IsMouseOver property has changed. |
| LabelWidthChanged | Event raised when the LabelWidth property has changed. |
| MethodBoxChanged | Fired when the generated list of method editors for the SelectedObject changes. |
| MethodBoxesLoaded | Fired when the all the method boxes in C1PropertyGrid were loaded. |
| PropertyBoxAdded | Fired when a property box is added to the C1PropertyGrid. |
| PropertyBoxChanged | Fired when the generated list of property editors for the SelectedObject changes. |
| PropertyBoxRemoved | Fired when a property box is removed from the C1PropertyGrid. |
| PropertyBoxesLoaded | Fired when the all the property boxes in C1PropertyGrid were loaded. |
| 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. |