PropertyGrid Class
Represents a property grid control.
public class PropertyGrid : TreeListView, IPropertyEditorsProvider
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl TreeListBox TreeListView object
- Implements:
- IPropertyEditorsProvider
Constructors
PropertyGrid()
Initializes an instance of the PropertyGrid class.
public PropertyGrid()
Properties
AreAttachedPropertiesBrowsable
Gets or sets whether attached properties are browsable and are displayed in the property grid.
public bool AreAttachedPropertiesBrowsable { get; set; }
Property Value
- bool:
true
if attached properties are browsable and are displayed in the property grid; otherwisefalse
. The default value isfalse
.
AreCategoriesAutoExpanded
Gets or sets whether categories are auto-expanded when they are added into the property grid.
public bool AreCategoriesAutoExpanded { get; set; }
Property Value
- bool:
true
if categories are auto-expanded when they are added into the property grid; otherwisefalse
. The default value istrue
.
AreClipboardMenuItemsEnabled
Gets or sets whether the default item context menu should include menu items for clipboard operations such as copying a property value.
public bool AreClipboardMenuItemsEnabled { get; set; }
Property Value
- bool:
true
if the default item context menu should include menu items for clipboard operations such as copying a property value; otherwisefalse
. The default value istrue
.
AreInheritedPropertiesBrowsable
Gets or sets whether inherited properties are browsable and are displayed in the property grid.
public bool AreInheritedPropertiesBrowsable { get; set; }
Property Value
- bool:
true
if inherited properties are browsable and are displayed in the property grid; otherwisefalse
. The default value istrue
.
AreNestedCategoriesSupported
Gets or sets whether nested categories are supported, using a special syntax in the category name.
public bool AreNestedCategoriesSupported { get; set; }
Property Value
- bool:
true
if nested categories are supported; otherwisefalse
. The default value isfalse
.
Remarks
To specify a nested category, the category names should be separated by a ''. Individual category names can be wrapped with single or double quotes, as needed.
ArePropertiesAutoExpanded
Gets or sets whether expandable properties are auto-expanded when they are added into the property grid.
public bool ArePropertiesAutoExpanded { get; set; }
Property Value
- bool:
true
if expandable properties are auto-expanded when they are added into the property grid; otherwisefalse
. The default value isfalse
.
AreReadOnlyPropertiesBrowsable
Gets or sets whether read-only properties are browsable and are displayed in the property grid.
public bool AreReadOnlyPropertiesBrowsable { get; set; }
Property Value
- bool:
true
if read-only properties are browsable and are displayed in the property grid; otherwisefalse
. The default value istrue
.
BrowsableAttributes
Gets or sets a list of Attribute objects that are used to determine which properties are browsable.
public IEnumerable<Attribute> BrowsableAttributes { get; set; }
Property Value
- IEnumerable<Attribute>:
The list of Attribute objects that are used to determine which properties are browsable. The default value is a list with a single entry of
BrowsableAttribute.Yes
.
CanClearDataObjectOnUnload
Gets or sets whether the DataObject property is cleared when the property grid is unloaded.
public bool CanClearDataObjectOnUnload { get; set; }
Property Value
- bool:
true
if the DataObject property is cleared when the property grid is unloaded; otherwise,false
. The default value isfalse
.
Remarks
Clearing the DataObject property when the property grid is no longer needed is important to prevent memory leaks from property change notification handlers.
The DataObject property can be cleared manually or the CanClearDataObjectOnUnload
property can be set to true
to automatically do this when the control is unloaded.
The CanClearDataObjectOnUnload
property should not be set to true
if a property grid or its ancestor hierarchy can get temporarily unloaded.
For instance, when a property grid is in a tab control, the property grid is unloaded when the parent tab is deselected.
Likewise, when a property grid is a docking window, the property grid is temporarily unloaded during dock operations as layout changes occur.
In these sorts of scenarios, it is better to manually clear the DataObject property when the primary UI (such as a main window) is closed.
CanSummaryAutoSize
Gets or sets whether the user can double-tap the summary splitter to auto-size to the summary area content.
public bool CanSummaryAutoSize { get; set; }
Property Value
- bool:
true
if the user can double-tap the summary splitter to auto-size to the summary area content; otherwise,false
. The default value isfalse
.
CancelPropertyValueEditHandlers
Gets a mapping between control types and associated delegates to be performed when an Escape
key down event is received by a PropertyGridItem.
public static PropertyGridItemActionHandlerDictionary CancelPropertyValueEditHandlers { get; }
Property Value
- PropertyGridItemActionHandlerDictionary:
A mapping between control types and associated delegates.
Remarks
When a KeyDown
event is raised on a PropertyGridItem, the PropertyGrid
will
use the control with focus to find an associated delegate in the CancelPropertyValueEditHandlers
dictionary.
If a matching entry is found, it will be executed. Exact type matches will be used first, then each base type will be queried.
CategoryEditors
Gets the category editors that can consume and display one or more properties.
public CategoryEditorCollection CategoryEditors { get; }
Property Value
- CategoryEditorCollection:
The category editors that can consume and display one or more properties.
CollectionPropertyDisplayMode
Gets or sets a CollectionPropertyDisplayMode that indicates the display mode of collection properties.
public CollectionPropertyDisplayMode CollectionPropertyDisplayMode { get; set; }
Property Value
- CollectionPropertyDisplayMode:
A CollectionPropertyDisplayMode that indicates the display mode of collection properties. The default value is
CollectionPropertyDisplayMode.Default
.
CommitPropertyValueEditHandlers
Gets a mapping between control types and associated delegates to be performed when an Enter
key down event is received by a PropertyGridItem.
public static PropertyGridItemActionHandlerDictionary CommitPropertyValueEditHandlers { get; }
Property Value
- PropertyGridItemActionHandlerDictionary:
A mapping between control types and associated delegates.
Remarks
When a KeyDown
event is raised on a PropertyGridItem, the PropertyGrid
will
use the control with focus to find an associated delegate in the CommitPropertyValueEditHandlers
dictionary.
If a matching entry is found, it will be executed. Exact type matches will be used first, then each base type will be queried.
CopyDisplayNameCommand
Gets the ICommand used to call the CopyDisplayName(IDataModel) method.
public ICommand CopyDisplayNameCommand { get; }
Property Value
- ICommand:
The ICommand used to call the CopyDisplayName(IDataModel) method.
CopyPropertyValueCommand
Gets the ICommand used to call the CopyPropertyValue(IPropertyModel) method.
public ICommand CopyPropertyValueCommand { get; }
Property Value
- ICommand:
The ICommand used to call the CopyPropertyValue(IPropertyModel) method.
DataFactory
Gets or sets the IDataFactory used to return the data models for objects.
public IDataFactory DataFactory { get; set; }
Property Value
- IDataFactory:
The IDataFactory used to return the data models for objects.
DataObject
Gets or sets the data object for which the control displays properties.
public object DataObject { get; set; }
Property Value
- object:
The data object for which the control displays properties.
Remarks
The DataObject property sets that a single object should be browsed in the property grid.
If multiple objects are being browsed, this property returns the first one in the list specified by DataObjects.
If no objects are being browsed, null
is returned.
Setting this DataObject property replaces the value of the DataObjects property.
DataObjects
Gets or sets the data objects for which the control displays properties.
public IEnumerable DataObjects { get; set; }
Property Value
- IEnumerable:
The data objects for which the control displays properties.
Remarks
Set this property if multiple data objects should be browsed at the same time. The property grid only displays the properties that are common to all the data objects. Setting this DataObjects property replaces the value of the DataObject property.
DefaultBooleanValueTemplate
Gets or sets a DataTemplate for editing a Boolean
value with a two-state CheckBox
.
public DataTemplate DefaultBooleanValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultBrushValueTemplate
Gets or sets a DataTemplate for editing a Brush
value with a swatch that renders the value, and a TextBox
for editing the value.
public DataTemplate DefaultBrushValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultCategoryEditorItemContainerStyle
Gets or sets a default PropertyGridItem container Style
used for category editor models.
public Style DefaultCategoryEditorItemContainerStyle { get; set; }
Property Value
- Style:
A default PropertyGridItem container
Style
used for category editor models.
DefaultCategoryItemContainerStyle
Gets or sets a default PropertyGridItem container Style
used for category models.
public Style DefaultCategoryItemContainerStyle { get; set; }
Property Value
- Style:
A default PropertyGridItem container
Style
used for category models.
DefaultColorValueTemplate
Gets or sets a DataTemplate for editing a Color
value with a swatch that renders the value, and a TextBox
for editing the value.
public DataTemplate DefaultColorValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultExtendedStringValueTemplate
Gets or sets a DataTemplate for editing a String
value (or Object
value via ValueAsString
) with a TextBox
and ...
(ellipses) button.
public DataTemplate DefaultExtendedStringValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultFontFamilyValueTemplate
Gets or sets a DataTemplate for editing a FontFamily
value with a ComboBox
that contains system font families.
public DataTemplate DefaultFontFamilyValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultFontStretchValueTemplate
Gets or sets a DataTemplate for editing a FontStretch
value with a ComboBox
that contains font stretch options.
public DataTemplate DefaultFontStretchValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultFontStyleValueTemplate
Gets or sets a DataTemplate for editing a FontStyle
value with a ComboBox
that contains font style options.
public DataTemplate DefaultFontStyleValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultFontWeightValueTemplate
Gets or sets a DataTemplate for editing a FontWeight
value with a ComboBox
that contains font weight options.
public DataTemplate DefaultFontWeightValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultLimitedObjectValueTemplate
Gets or sets a DataTemplate for editing an Object
value with a non-editable ComboBox
(drop-down only) that contains suggested options.
public DataTemplate DefaultLimitedObjectValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultLimitedStringValueTemplate
Gets or sets a DataTemplate for editing a String
value (or Object
value via ValueAsString
) with a non-editable ComboBox
(drop-down only) that contains suggested options.
public DataTemplate DefaultLimitedStringValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultNullableBooleanValueTemplate
Gets or sets a DataTemplate for editing a nullable Boolean
with a three-state CheckBox
.
public DataTemplate DefaultNullableBooleanValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultPropertyEditors
Gets the collection of property editors that are used by default in all PropertyGrid instances, examined alongside the PropertyEditors collection for each PropertyGrid instance.
public static PropertyEditorCollection DefaultPropertyEditors { get; }
Property Value
- PropertyEditorCollection:
The collection of property editors that are used by default in all PropertyGrid instances.
See Also
DefaultPropertyItemContainerStyle
Gets or sets a default PropertyGridItem container Style
used for property models.
public Style DefaultPropertyItemContainerStyle { get; set; }
Property Value
- Style:
A default PropertyGridItem container
Style
used for property models.
DefaultStringNameTemplate
Gets or sets a DataTemplate with a read-only TextBlock
that can be used for name column cells.
public DataTemplate DefaultStringNameTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for name column cells.
DefaultStringValueTemplate
Gets or sets a DataTemplate for editing a String
value (or Object
value via ValueAsString
) with a TextBox
.
public DataTemplate DefaultStringValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
DefaultSuggestedStringValueTemplate
Gets or sets a DataTemplate for editing a String
value (or Object
value via ValueAsString
) with an editable ComboBox
that contains suggested options.
public DataTemplate DefaultSuggestedStringValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that can be used for value column cells.
ImmediateStringValueTemplate
Gets or sets a DataTemplate that is the same as DefaultStringValueTemplate, but the edited string value is immediately updated as text is typed instead of only on focus loss.
public DataTemplate ImmediateStringValueTemplate { get; set; }
Property Value
- DataTemplate:
A DataTemplate that is the same as DefaultStringValueTemplate, but the edited string value is immediately updated as text is typed instead of only on focus loss.
IsCategorized
Gets or sets whether properties are categorized.
public bool IsCategorized { get; set; }
Property Value
- bool:
true
if properties are categorized; otherwise,false
. The default value istrue
.
IsDefaultItemContextMenuEnabled
Gets or sets whether the default context menu is enabled for property grid items.
public bool IsDefaultItemContextMenuEnabled { get; set; }
Property Value
- bool:
true
if the default context menu is enabled for property grid items; otherwisefalse
. The default value istrue
.
IsReadOnly
Gets or sets whether the value editors are read-only.
public bool IsReadOnly { get; set; }
Property Value
- bool:
true
if value editors are read-only; otherwise,false
. The default value isfalse
.
IsSummaryResizable
Gets or sets whether the summary area is resizable.
public bool IsSummaryResizable { get; set; }
Property Value
- bool:
true
if the summary is resizable; otherwise,false
. The default value istrue
.
IsSummaryToggleAllowed
Gets or sets whether the summary area's visibility is allowed to be toggled.
public bool IsSummaryToggleAllowed { get; set; }
Property Value
- bool:
true
if the summary area's visibility is allowed to be toggled; otherwise,false
. The default value istrue
.
IsSummaryVisible
Gets or sets whether the summary area is visible.
public bool IsSummaryVisible { get; set; }
Property Value
- bool:
true
if the summary area is visible; otherwise,false
. The default value istrue
.
LogicalChildren
Gets an enumerator for logical child elements of this element.
protected override IEnumerator LogicalChildren { get; }
Property Value
- IEnumerator:
An enumerator for logical child elements of this element.
MiscCategoryName
Gets or sets the name used for the miscellaneous category.
[Localizability(LocalizationCategory.Title)]
public string MiscCategoryName { get; set; }
Property Value
- string:
The name used for the miscellaneous category. The default value is the localized "Misc" text.
NameColumnIndex
Gets the index of the name column.
NameColumnMaxWidth
Gets or sets the maximum width of the name column, which comes into play as the property grid or its columns are resized.
public double NameColumnMaxWidth { get; set; }
Property Value
- double:
The maximum width of the name column.
NameContainerStyle
Gets or sets the Style to use for the name column cells.
public Style NameContainerStyle { get; set; }
Property Value
NameTemplate
Gets or sets the DataTemplate to use for the name column cells.
public DataTemplate NameTemplate { get; set; }
Property Value
- DataTemplate:
The DataTemplate to use for the name column cells.
NameTemplateSelector
Gets or sets the DataTemplateSelector to use for the name column cells.
public DataTemplateSelector NameTemplateSelector { get; set; }
Property Value
- DataTemplateSelector:
The DataTemplateSelector to use for the name column cells.
PastePropertyValueCommand
Gets the ICommand used to call the PastePropertyValue(IPropertyModel) method.
public ICommand PastePropertyValueCommand { get; }
Property Value
- ICommand:
The ICommand used to call the PastePropertyValue(IPropertyModel) method.
Properties
Gets the explicitly-defined properties that should be displayed.
public PropertyModelCollection Properties { get; }
Property Value
- PropertyModelCollection:
The explicitly-defined properties that should be displayed.
Remarks
These properties will be merged with the properties generated from the DataObjects property. If DataObjects is null or empty, then only these properties will be displayed.
PropertyEditors
Gets the PropertyEditorCollection that contains property editor definitions specifically for this property grid instance.
public PropertyEditorCollection PropertyEditors { get; }
Property Value
- PropertyEditorCollection:
The PropertyEditorCollection that contains property editor definitions specifically for this property grid instance.
Remarks
The DefaultPropertyEditors collection contains other property editors that apply to all PropertyGrid instances.
See Also
PropertyEditorsModifierKey
Gets the resource key that is loaded by the PropertyGrid, allowing for customization of the property editors directly from XAML.
public static object PropertyEditorsModifierKey { get; }
Property Value
- object:
A resource key whose value is the string "PropertyGridPropertyEditorsModifierKey".
PropertyExpandability
Gets or sets a PropertyExpandability that indicates the expandability of properties.
public PropertyExpandability PropertyExpandability { get; set; }
Property Value
- PropertyExpandability:
A PropertyExpandability that indicates the expandability of properties. The default value is
PropertyExpandability.Default
.
SortComparer
Gets or sets the DataModelSortComparer to use for sorting data models.
public DataModelSortComparer SortComparer { get; set; }
Property Value
- DataModelSortComparer:
The DataModelSortComparer to use for sorting data models. The default value is a DataModelSortComparer instance.
StartPropertyValueEditHandlers
Gets a mapping between control types and associated delegates to be performed when a Tab
or typing key down event is received by a PropertyGridItem.
public static PropertyGridItemActionHandlerDictionary StartPropertyValueEditHandlers { get; }
Property Value
- PropertyGridItemActionHandlerDictionary:
A mapping between control types and associated delegates.
Remarks
When a KeyDown
event is raised on a PropertyGridItem, the PropertyGrid
will
use the control that should gain focus to find an associated delegate in the StartPropertyValueEditHandlers
dictionary.
If a matching entry is found, it will be executed. Exact type matches will be used first, then each base type will be queried.
SummaryHeight
Gets or sets the height of the summary area.
[TypeConverter(typeof(LengthConverter))]
public double SummaryHeight { get; set; }
Property Value
- double:
The height of the summary area. The default value is
78
.
SummaryTemplate
Gets or sets a DataTemplate used to display the selected item in the summary area.
public DataTemplate SummaryTemplate { get; set; }
Property Value
- DataTemplate:
The DataTemplate used to display the selected item in the summary area. The default value is
null
.
SummaryTemplateSelector
Gets or sets a DataTemplateSelector used to select a DataTemplate, which is used to display the selected item in the summary area.
public DataTemplateSelector SummaryTemplateSelector { get; set; }
Property Value
- DataTemplateSelector:
The DataTemplateSelector used to select a DataTemplate, which is used to display the selected item in the summary area. The default value is
null
.
ToggleSummaryVisibilityCommand
Gets the ICommand used to toggle the IsSummaryVisible property.
public ICommand ToggleSummaryVisibilityCommand { get; }
Property Value
- ICommand:
The ICommand used to toggle the IsSummaryVisible property.
ValueColumnIndex
Gets the index of the value column.
ValueContainerStyle
Gets or sets the Style to use for the value column cells.
public Style ValueContainerStyle { get; set; }
Property Value
ValueTemplate
Gets or sets the DataTemplate to use for the value column cells.
public DataTemplate ValueTemplate { get; set; }
Property Value
- DataTemplate:
The DataTemplate to use for the value column cells.
ValueTemplateSelector
Gets or sets the DataTemplateSelector to use for the value column cells.
public DataTemplateSelector ValueTemplateSelector { get; set; }
Property Value
- DataTemplateSelector:
The DataTemplateSelector to use for the value column cells.
Methods
CopyDisplayName(IDataModel)
Copies the display name of the specified IDataModel
public void CopyDisplayName(IDataModel model)
Parameter | Type | Description |
---|---|---|
model | IDataModel | The IDataModel to examine. |
CopyPropertyValue(IPropertyModel)
Copies the value of the specified IPropertyModel
public void CopyPropertyValue(IPropertyModel model)
Parameter | Type | Description |
---|---|---|
model | IPropertyModel | The IPropertyModel to examine. |
GetContainerForItemOverride()
Creates or identifies the element used to display the specified item.
protected override DependencyObject GetContainerForItemOverride()
Returns
- DependencyObject:
The element that is used to display the given item.
IsItemItsOwnContainerOverride(object)
Determines if the specified item is (or is eligible to be) its own item container.
protected override bool IsItemItsOwnContainerOverride(object item)
Parameter | Type | Description |
---|---|---|
item | object | Specified item. |
Returns
- bool:
true
if the item is its own item container; otherwise,false
.
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate
.
public override void OnApplyTemplate()
OnChildPropertyAdded(PropertyModelChildChangeEventArgs)
Occurs after a IPropertyModel representing a child is added to a parent IPropertyModel.
protected virtual void OnChildPropertyAdded(PropertyModelChildChangeEventArgs e)
Parameter | Type | Description |
---|---|---|
e | PropertyModelChildChangeEventArgs | The |
Remarks
This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.
OnChildPropertyAdding(PropertyModelChildChangeEventArgs)
Occurs before a IPropertyModel representing a child is added to a parent IPropertyModel.
protected virtual void OnChildPropertyAdding(PropertyModelChildChangeEventArgs e)
Parameter | Type | Description |
---|---|---|
e | PropertyModelChildChangeEventArgs | The |
Remarks
This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.
OnChildPropertyRemoved(PropertyModelChildChangeEventArgs)
Occurs after a IPropertyModel representing a child is removed from a parent IPropertyModel.
protected virtual void OnChildPropertyRemoved(PropertyModelChildChangeEventArgs e)
Parameter | Type | Description |
---|---|---|
e | PropertyModelChildChangeEventArgs | The |
Remarks
This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.
OnChildPropertyRemoving(PropertyModelChildChangeEventArgs)
Occurs before a IPropertyModel representing a child is removed from a parent IPropertyModel.
protected virtual void OnChildPropertyRemoving(PropertyModelChildChangeEventArgs e)
Parameter | Type | Description |
---|---|---|
e | PropertyModelChildChangeEventArgs | The |
Remarks
This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.
OnCreateAutomationPeer()
Returns an AutomationPeer object for this control instance.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
An AutomationPeer instance.
OnItemMenuRequested(TreeListBoxItemMenuEventArgs)
Occurs when an item requests a context menu.
protected override void OnItemMenuRequested(TreeListBoxItemMenuEventArgs e)
Parameter | Type | Description |
---|---|---|
e | TreeListBoxItemMenuEventArgs | The |
Remarks
This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.
OnKeyDown(KeyEventArgs)
Occurs when a key is pressed.
protected override void OnKeyDown(KeyEventArgs e)
Parameter | Type | Description |
---|---|---|
e | KeyEventArgs | The KeyEventArgs that contains the event data. |
OnPropertyValueChanged(PropertyModelValueChangeEventArgs)
Occurs after the value is set for an IPropertyModel.
protected virtual void OnPropertyValueChanged(PropertyModelValueChangeEventArgs e)
Parameter | Type | Description |
---|---|---|
e | PropertyModelValueChangeEventArgs | The |
Remarks
This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.
OnPropertyValueChanging(PropertyModelValueChangeEventArgs)
Occurs before the value is set for an IPropertyModel, allowing the value change to be canceled.
protected virtual void OnPropertyValueChanging(PropertyModelValueChangeEventArgs e)
Parameter | Type | Description |
---|---|---|
e | PropertyModelValueChangeEventArgs | The |
Remarks
This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.
PastePropertyValue(IPropertyModel)
Pastes a value to the specified IPropertyModel
public void PastePropertyValue(IPropertyModel model)
Parameter | Type | Description |
---|---|---|
model | IPropertyModel | The IPropertyModel to examine. |
RequestRefresh()
Requests a ActiproSoftware.Windows.Controls.Grids.PropertyGrid.Refresh using a dispatched action that only executes the latest request.
public void RequestRefresh()
TryCommitPropertyValueEdit()
Tries to commit a pending property value edit, generally in response to an Enter
key press.
public bool TryCommitPropertyValueEdit()
Returns
- bool:
true
if the commit was handled; otherwise,false
.
Events
ChildPropertyAdded
Occurs after a IPropertyModel representing a child is added to a parent IPropertyModel.
public event EventHandler<PropertyModelChildChangeEventArgs> ChildPropertyAdded
Event Type
ChildPropertyAdding
Occurs before a IPropertyModel representing a child is added to a parent IPropertyModel.
public event EventHandler<PropertyModelChildChangeEventArgs> ChildPropertyAdding
Event Type
ChildPropertyRemoved
Occurs after a IPropertyModel representing a child is removed from a parent IPropertyModel.
public event EventHandler<PropertyModelChildChangeEventArgs> ChildPropertyRemoved
Event Type
ChildPropertyRemoving
Occurs before a IPropertyModel representing a child is removed from a parent IPropertyModel.
public event EventHandler<PropertyModelChildChangeEventArgs> ChildPropertyRemoving
Event Type
PropertyValueChanged
Occurs after the value is set for an IPropertyModel.
public event EventHandler<PropertyModelValueChangeEventArgs> PropertyValueChanged
Event Type
PropertyValueChanging
Occurs before the value is set for an IPropertyModel, allowing the value change to be canceled.
public event EventHandler<PropertyModelValueChangeEventArgs> PropertyValueChanging
Event Type
Fields
AreAttachedPropertiesBrowsableProperty
Identifies the AreAttachedPropertiesBrowsable dependency property. This field is read-only.
public static readonly DependencyProperty AreAttachedPropertiesBrowsableProperty
AreCategoriesAutoExpandedProperty
Identifies the AreCategoriesAutoExpanded dependency property. This field is read-only.
public static readonly DependencyProperty AreCategoriesAutoExpandedProperty
AreClipboardMenuItemsEnabledProperty
Identifies the AreClipboardMenuItemsEnabled dependency property. This field is read-only.
public static readonly DependencyProperty AreClipboardMenuItemsEnabledProperty
AreInheritedPropertiesBrowsableProperty
Identifies the AreInheritedPropertiesBrowsable dependency property. This field is read-only.
public static readonly DependencyProperty AreInheritedPropertiesBrowsableProperty
AreNestedCategoriesSupportedProperty
Identifies the AreNestedCategoriesSupported dependency property. This field is read-only.
public static readonly DependencyProperty AreNestedCategoriesSupportedProperty
ArePropertiesAutoExpandedProperty
Identifies the ArePropertiesAutoExpanded dependency property. This field is read-only.
public static readonly DependencyProperty ArePropertiesAutoExpandedProperty
AreReadOnlyPropertiesBrowsableProperty
Identifies the AreReadOnlyPropertiesBrowsable dependency property. This field is read-only.
public static readonly DependencyProperty AreReadOnlyPropertiesBrowsableProperty
BrowsableAttributesProperty
Identifies the BrowsableAttributes dependency property. This field is read-only.
public static readonly DependencyProperty BrowsableAttributesProperty
CanClearDataObjectOnUnloadProperty
Identifies the CanClearDataObjectOnUnload dependency property. This field is read-only.
public static readonly DependencyProperty CanClearDataObjectOnUnloadProperty
CanSummaryAutoSizeProperty
Identifies the CanSummaryAutoSize dependency property. This field is read-only.
public static readonly DependencyProperty CanSummaryAutoSizeProperty
ChildPropertyAddedEvent
Identifies the ChildPropertyAdded routed event. This field is read-only.
public static readonly RoutedEvent ChildPropertyAddedEvent
ChildPropertyAddingEvent
Identifies the ChildPropertyAdding routed event. This field is read-only.
public static readonly RoutedEvent ChildPropertyAddingEvent
ChildPropertyRemovedEvent
Identifies the ChildPropertyRemoved routed event. This field is read-only.
public static readonly RoutedEvent ChildPropertyRemovedEvent
ChildPropertyRemovingEvent
Identifies the ChildPropertyRemoving routed event. This field is read-only.
public static readonly RoutedEvent ChildPropertyRemovingEvent
CollectionPropertyDisplayModeProperty
Identifies the CollectionPropertyDisplayMode dependency property. This field is read-only.
public static readonly DependencyProperty CollectionPropertyDisplayModeProperty
DataFactoryProperty
Identifies the DataFactory dependency property. This field is read-only.
public static readonly DependencyProperty DataFactoryProperty
DataObjectProperty
Identifies the DataObject dependency property. This field is read-only.
public static readonly DependencyProperty DataObjectProperty
DataObjectsProperty
Identifies the DataObjects dependency property. This field is read-only.
public static readonly DependencyProperty DataObjectsProperty
DefaultBooleanValueTemplateProperty
Identifies the DefaultBooleanValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultBooleanValueTemplateProperty
DefaultBrushValueTemplateProperty
Identifies the DefaultBrushValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultBrushValueTemplateProperty
DefaultCategoryEditorItemContainerStyleProperty
Identifies the DefaultCategoryEditorItemContainerStyle dependency property. This field is read-only.
public static readonly DependencyProperty DefaultCategoryEditorItemContainerStyleProperty
DefaultCategoryItemContainerStyleProperty
Identifies the DefaultCategoryItemContainerStyle dependency property. This field is read-only.
public static readonly DependencyProperty DefaultCategoryItemContainerStyleProperty
DefaultColorValueTemplateProperty
Identifies the DefaultColorValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultColorValueTemplateProperty
DefaultExtendedStringValueTemplateProperty
Identifies the DefaultExtendedStringValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultExtendedStringValueTemplateProperty
DefaultFontFamilyValueTemplateProperty
Identifies the DefaultFontFamilyValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultFontFamilyValueTemplateProperty
DefaultFontStretchValueTemplateProperty
Identifies the DefaultFontStretchValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultFontStretchValueTemplateProperty
DefaultFontStyleValueTemplateProperty
Identifies the DefaultFontStyleValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultFontStyleValueTemplateProperty
DefaultFontWeightValueTemplateProperty
Identifies the DefaultFontWeightValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultFontWeightValueTemplateProperty
DefaultLimitedObjectValueTemplateProperty
Identifies the DefaultLimitedObjectValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultLimitedObjectValueTemplateProperty
DefaultLimitedStringValueTemplateProperty
Identifies the DefaultLimitedStringValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultLimitedStringValueTemplateProperty
DefaultNullableBooleanValueTemplateProperty
Identifies the DefaultNullableBooleanValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultNullableBooleanValueTemplateProperty
DefaultPropertyItemContainerStyleProperty
Identifies the DefaultPropertyItemContainerStyle dependency property. This field is read-only.
public static readonly DependencyProperty DefaultPropertyItemContainerStyleProperty
DefaultStringNameTemplateProperty
Identifies the DefaultStringNameTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultStringNameTemplateProperty
DefaultStringValueTemplateProperty
Identifies the DefaultStringValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultStringValueTemplateProperty
DefaultSuggestedStringValueTemplateProperty
Identifies the DefaultSuggestedStringValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty DefaultSuggestedStringValueTemplateProperty
ImmediateStringValueTemplateProperty
Identifies the ImmediateStringValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty ImmediateStringValueTemplateProperty
IsCategorizedProperty
Identifies the IsCategorized dependency property. This field is read-only.
public static readonly DependencyProperty IsCategorizedProperty
IsDefaultItemContextMenuEnabledProperty
Identifies the IsDefaultItemContextMenuEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsDefaultItemContextMenuEnabledProperty
IsReadOnlyProperty
Identifies the IsReadOnly dependency property. This field is read-only.
public static readonly DependencyProperty IsReadOnlyProperty
IsSummaryResizableProperty
Identifies the IsSummaryResizable dependency property. This field is read-only.
public static readonly DependencyProperty IsSummaryResizableProperty
IsSummaryToggleAllowedProperty
Identifies the IsSummaryToggleAllowed dependency property. This field is read-only.
public static readonly DependencyProperty IsSummaryToggleAllowedProperty
IsSummaryVisibleProperty
Identifies the IsSummaryVisible dependency property. This field is read-only.
public static readonly DependencyProperty IsSummaryVisibleProperty
MiscCategoryNameProperty
Identifies the MiscCategoryName dependency property. This field is read-only.
public static readonly DependencyProperty MiscCategoryNameProperty
NameColumnMaxWidthProperty
Identifies the NameColumnMaxWidth dependency property. This field is read-only.
public static readonly DependencyProperty NameColumnMaxWidthProperty
NameContainerStyleProperty
Identifies the NameContainerStyle dependency property. This field is read-only.
public static readonly DependencyProperty NameContainerStyleProperty
NameTemplateProperty
Identifies the NameTemplate dependency property. This field is read-only.
public static readonly DependencyProperty NameTemplateProperty
NameTemplateSelectorProperty
Identifies the NameTemplateSelector dependency property. This field is read-only.
public static readonly DependencyProperty NameTemplateSelectorProperty
PropertyExpandabilityProperty
Identifies the PropertyExpandability dependency property. This field is read-only.
public static readonly DependencyProperty PropertyExpandabilityProperty
PropertyValueChangedEvent
Identifies the PropertyValueChanged routed event. This field is read-only.
public static readonly RoutedEvent PropertyValueChangedEvent
PropertyValueChangingEvent
Identifies the PropertyValueChanging routed event. This field is read-only.
public static readonly RoutedEvent PropertyValueChangingEvent
SortComparerProperty
Identifies the SortComparer dependency property. This field is read-only.
public static readonly DependencyProperty SortComparerProperty
SummaryHeightProperty
Identifies the SummaryHeight dependency property. This field is read-only.
public static readonly DependencyProperty SummaryHeightProperty
SummaryTemplateProperty
Identifies the SummaryTemplate dependency property. This field is read-only.
public static readonly DependencyProperty SummaryTemplateProperty
SummaryTemplateSelectorProperty
Identifies the SummaryTemplateSelector dependency property. This field is read-only.
public static readonly DependencyProperty SummaryTemplateSelectorProperty
ValueContainerStyleProperty
Identifies the ValueContainerStyle dependency property. This field is read-only.
public static readonly DependencyProperty ValueContainerStyleProperty
ValueTemplateProperty
Identifies the ValueTemplate dependency property. This field is read-only.
public static readonly DependencyProperty ValueTemplateProperty
ValueTemplateSelectorProperty
Identifies the ValueTemplateSelector dependency property. This field is read-only.
public static readonly DependencyProperty ValueTemplateSelectorProperty
Inherited Members
- TreeListView.AreColumnHeadersVisibleProperty
- TreeListView.CanColumnsReorderProperty
- TreeListView.CanColumnsResizeProperty
- TreeListView.CanColumnsToggleVisibilityProperty
- TreeListView.ColumnHeaderHeightProperty
- TreeListView.ColumnHeaderVisibilityProperty
- TreeListView.ExpansionColumnIndexProperty
- TreeListView.FrozenColumnCountProperty
- TreeListView.FrozenColumnsWidthProperty
- TreeListView.ColumnHeaderMenuRequestedEvent
- TreeListView.ColumnHeaderTappedEvent
- TreeListView.ColumnIsVisibleChangedEvent
- TreeListView.ColumnReorderedEvent
- TreeListView.ColumnsResizedEvent
- TreeListView.IsDefaultColumnHeaderContextMenuEnabledProperty
- TreeListView.ArrangeOverride(Size)
- TreeListView.ClearContainerForItemOverride(DependencyObject, object)
- TreeListView.GetColumnHeaderVisibility(ScrollViewer)
- TreeListView.SetColumnHeaderVisibility(ScrollViewer, Visibility)
- TreeListView.GetFrozenColumnsWidth(ScrollViewer)
- TreeListView.SetFrozenColumnsWidth(ScrollViewer, double)
- TreeListView.MeasureOverride(Size)
- TreeListView.OnScrollViewerScrollChanged(ScrollChangedEventArgs)
- TreeListView.PrepareContainerForItemOverride(DependencyObject, object)
- TreeListView.SizeAllColumnsToFit()
- TreeListView.OnColumnHeaderMenuRequested(TreeListViewColumnMenuEventArgs)
- TreeListView.OnColumnHeaderTapped(TreeListViewColumnEventArgs)
- TreeListView.OnColumnIsVisibleChanged(TreeListViewColumnEventArgs)
- TreeListView.OnColumnReordered(TreeListViewColumnEventArgs)
- TreeListView.OnColumnsResized(RoutedEventArgs)
- TreeListView.AreColumnHeadersVisible
- TreeListView.CanColumnsReorder
- TreeListView.CanColumnsResize
- TreeListView.CanColumnsToggleVisibility
- TreeListView.ColumnHeaderHeight
- TreeListView.Columns
- TreeListView.ExpansionColumnIndex
- TreeListView.FrozenColumnCount
- TreeListView.IsKeyboardFocusWithinContent
- TreeListView.SizeAllColumnsToFitCommand
- TreeListView.IsDefaultColumnHeaderContextMenuEnabled
- TreeListView.ColumnHeaderMenuRequested
- TreeListView.ColumnHeaderTapped
- TreeListView.ColumnIsVisibleChanged
- TreeListView.ColumnReordered
- TreeListView.ColumnsResized
- TreeListBox.AutoExpandItemsOnFilterProperty
- TreeListBox.CanDragItemsProperty
- TreeListBox.DataFilterProperty
- TreeListBox.EmptyContentProperty
- TreeListBox.EmptyContentTemplateProperty
- TreeListBox.IndentIncrementProperty
- TreeListBox.IsDataVirtualizationEnabledProperty
- TreeListBox.IsEmptyProperty
- TreeListBox.IsFilterActiveProperty
- TreeListBox.IsRootItemVisibleProperty
- TreeListBox.ItemAdapterProperty
- TreeListBox.MultiDragKindProperty
- TreeListBox.PathSeparatorProperty
- TreeListBox.RootItemProperty
- TreeListBox.TopLevelIndentProperty
- TreeListBox.ItemDataFormat
- TreeListBox.FilterAppliedEvent
- TreeListBox.IsRootItemVisibleChangedEvent
- TreeListBox.ItemCollapsedEvent
- TreeListBox.ItemCollapsingEvent
- TreeListBox.ItemDefaultActionExecutingEvent
- TreeListBox.ItemExpandedEvent
- TreeListBox.ItemExpandingEvent
- TreeListBox.ItemMenuRequestedEvent
- TreeListBox.ItemSelectingEvent
- TreeListBox.RootItemChangedEvent
- TreeListBox.SelectionChangedEvent
- TreeListBox.CanSelectItemOnFocusProperty
- TreeListBox.MultiSelectionKindProperty
- TreeListBox.SelectionModeProperty
- TreeListBox.SelectedItemProperty
- TreeListBox.HasTreeLinesProperty
- TreeListBox.IsSelectionActiveProperty
- TreeListBox.BringItemIntoView(object)
- TreeListBox.BringItemIntoViewByFullPath(string)
- TreeListBox.CollapseAll()
- TreeListBox.ExpandAll()
- TreeListBox.GetFullPath(object)
- TreeListBox.GetItemByFullPath(string)
- TreeListBox.GetItemNavigator(object)
- TreeListBox.InvalidateChildren(object)
- TreeListBox.OnDragEnter(DragEventArgs)
- TreeListBox.OnDragLeave(DragEventArgs)
- TreeListBox.OnDragOver(DragEventArgs)
- TreeListBox.OnDrop(DragEventArgs)
- TreeListBox.ProcessKeyDown(KeyEventArgs)
- TreeListBox.OnFilterApplied(RoutedEventArgs)
- TreeListBox.OnIsRootItemVisibleChanged(RoutedEventArgs)
- TreeListBox.OnItemCollapsed(TreeListBoxItemExpansionEventArgs)
- TreeListBox.OnItemCollapsing(TreeListBoxItemExpansionEventArgs)
- TreeListBox.OnItemDefaultActionExecuting(TreeListBoxItemEventArgs)
- TreeListBox.OnItemExpanded(TreeListBoxItemExpansionEventArgs)
- TreeListBox.OnItemExpanding(TreeListBoxItemExpansionEventArgs)
- TreeListBox.OnItemSelecting(TreeListBoxItemEventArgs)
- TreeListBox.OnRootItemChanged(RoutedEventArgs)
- TreeListBox.OnSelectionChanged(SelectionChangedEventArgs)
- TreeListBox.FocusItem(object)
- TreeListBox.FocusItemByFullPath(string)
- TreeListBox.CreateSelectionBatch()
- TreeListBox.SelectItemByFullPath(string)
- TreeListBox.GetIsSelectionActive(TreeListBox)
- TreeListBox.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
- TreeListBox.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- TreeListBox.OnItemsSourceChanged(IEnumerable, IEnumerable)
- TreeListBox.AutoExpandItemsOnFilter
- TreeListBox.CanDragItems
- TreeListBox.CanExpandAll
- TreeListBox.DataFilter
- TreeListBox.EmptyContent
- TreeListBox.EmptyContentTemplate
- TreeListBox.IndentIncrement
- TreeListBox.IsDataVirtualizationEnabled
- TreeListBox.IsEmpty
- TreeListBox.IsFilterActive
- TreeListBox.IsRootItemVisible
- TreeListBox.ItemAdapter
- TreeListBox.MultiDragKind
- TreeListBox.PathSeparator
- TreeListBox.RootItem
- TreeListBox.TopLevelIndent
- TreeListBox.CanSelectItemOnFocus
- TreeListBox.MultiSelectionKind
- TreeListBox.SelectionMode
- TreeListBox.SelectedItem
- TreeListBox.SelectedItems
- TreeListBox.AssemblyInfo
- TreeListBox.HasTreeLines
- TreeListBox.FilterApplied
- TreeListBox.IsRootItemVisibleChanged
- TreeListBox.ItemCollapsed
- TreeListBox.ItemCollapsing
- TreeListBox.ItemDefaultActionExecuting
- TreeListBox.ItemExpanded
- TreeListBox.ItemExpanding
- TreeListBox.ItemMenuRequested
- TreeListBox.ItemSelecting
- TreeListBox.RootItemChanged
- TreeListBox.SelectionChanged