New to Telerik UI for WPFStart a free 30-day trial

Provides UI for displaying and editing of a property in RadPropertyGrid.

Definition

Namespace:Telerik.Windows.Controls.Data.PropertyGrid

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
public class PropertyGridField : ContentControl

Inheritance: objectPropertyGridField

Constructors

Initializes a new instance of the PropertyGridField class.

C#
public PropertyGridField()

Fields

IsCurrentProperty

DependencyProperty

Represents the IsCurrent dependency property.

C#
public static readonly DependencyProperty IsCurrentProperty

IsExpandedProperty

DependencyProperty

Represents the IsExpandedProperty dependency property.

C#
public static readonly DependencyProperty IsExpandedProperty

IsReadOnlyProperty

DependencyProperty

Represents the IsReadOnly dependency property.

C#
public static readonly DependencyProperty IsReadOnlyProperty

Occurs when a field's IsSelected state changes.

C#
public static readonly RoutedEvent IsSelectedChangedEvent

IsSelectedProperty

DependencyProperty

Represents the IsSelected dependency property.

C#
public static readonly DependencyProperty IsSelectedProperty

Represents the ShouldDisplayNestedItemsControl dependency property.

C#
public static readonly DependencyProperty ShouldDisplayNestedItemsControlProperty

Represents the ShouldDisplayNestedItemsControl dependency property.

C#
public static readonly DependencyPropertyKey ShouldDisplayNestedItemsControlPropertyKey

Represents the ShouldDisplayNestedProperties dependency property.

C#
public static readonly DependencyProperty ShouldDisplayNestedPropertiesProperty

Represents the ShouldDisplayNestedProperties dependency property.

C#
public static readonly DependencyPropertyKey ShouldDisplayNestedPropertiesPropertyKey

Properties

Gets field's indentation level.

C#
public int IndentLevel { get; }

Gets or sets a value indicating whether the field is focused.

C#
public bool IsCurrent { get; }

Gets or sets a value indicating whether the field is expanded.

C#
public bool IsExpanded { get; set; }

Gets or sets a value indicating whether the field is selected.

C#
public bool IsSelected { get; set; }

Label

TextBlock

Gets the field's label.

C#
public TextBlock Label { get; }
Property Value:

The label.

Gets the parent property grid.

C#
public RadPropertyGrid ParentPropertyGrid { get; }

Gets or sets a value that indicates whether nested items control should be displayed.

C#
public bool ShouldDisplayNestedItemsControl { get; }
Property Value:

The should display nested items control.

Gets a value that indicates whether the NestedProperties UI should be visible.

C#
public bool ShouldDisplayNestedProperties { get; }

Methods

When overridden in a derived class, is invoked whenever application code or internal processes call .

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when IsCurrent property is changed.

C#
protected static void OnIsCurrentChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters:senderDependencyObject

The sender.

argsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when IsExpanded property is changed.

C#
protected static void OnIsExpandedChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters:senderDependencyObject

The sender.

argsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Raises the IsSelectedChanged event.

C#
protected virtual void OnIsSelectedChanged(bool isSelected)
Parameters:isSelectedbool

if set to true [is selected].

Called when IsSelected property is changed.

C#
protected static void OnIsSelectedChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters:senderDependencyObject

The sender.

argsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when MouseLeftDown occurs.

C#
protected virtual void OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
Parameters:senderobject

The sender.

eMouseButtonEventArgs

The MouseButtonEventArgs instance containing the event data.

Called when TapDown occurs.

C#
protected virtual void OnTapDown()

Called when the Unloaded event is Raised.

C#
protected virtual void OnUnloaded(object sender, RoutedEventArgs e)
Parameters:senderobject

The sender.

eRoutedEventArgs

The RoutedEventArgs instance containing the event data.

Resets the theme.

C#
public void ResetTheme()

Events

Occurs when a field's IsSelected state changes.

C#
public event EventHandler<PropertyGridFieldEventArgs> IsSelectedChanged