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

Provides command logic and navigation functionality for a RadPropertyGrid control.

Definition

Namespace:Telerik.Windows.Controls.Data.PropertyGrid

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
public class PropertyGridCommandProvider : DependencyObject, ICommandProvider, IKeyboardCommandExecutor

Inheritance: objectPropertyGridCommandProvider

Implements: ICommandProviderIKeyboardCommandExecutor

Constructors

Initializes a new instance of the PropertyGridCommandProvider class.

C#
public PropertyGridCommandProvider()

Initializes a new instance of the PropertyGridCommandProvider class.

C#
public PropertyGridCommandProvider(RadPropertyGrid propertyGrid)
Parameters:propertyGridRadPropertyGrid

Fields

Represents the EnableBuiltInNavigation dependency property.

C#
public static readonly DependencyProperty EnableBuiltInNavigationProperty

PropertyGridProperty

DependencyProperty

Represents the PropertyGrid DependencyProperty.

C#
public static readonly DependencyProperty PropertyGridProperty

Represents the ShouldProcessHandledEvents dependency property.

C#
public static readonly DependencyProperty ShouldProcessHandledEventsProperty

Properties

Gets the index of the current PropertyDefinition.

C#
protected int CurrentIndex { get; }
Property Value:

The index of the current.

Gets or sets a value that indicates whether custom control navigation logic should be enabled.

C#
public bool EnableBuiltInNavigation { get; set; }

Implements: ICommandProvider.EnableBuiltInNavigation

Gets or sets the RadPropertyGrid instance related to this provider.

C#
public RadPropertyGrid PropertyGrid { get; set; }
Property Value:

The RadPropertyGrid instance.

Gets or sets a value that indicates whether handled events should be processed.

C#
public bool ShouldProcessHandledEvents { get; set; }

Implements: ICommandProvider.ShouldProcessHandledEvents

Gets the processed PropertyDefinitions list.

C#
protected List<object> SourceList { get; }
Property Value:

The source list.

Methods

Represents the logic that is going to be executed in RadPropertyGridCommands.ExpandCurrentField can-execute callback.

C#
protected virtual bool CanExpandCurrentField()
Returns:

bool

Represents the logic that is going to be executed in RadPropertyGridCommands.Group can-execute callback.

C#
protected virtual bool CanGroup()
Returns:

bool

Represents the logic that is going to be executed in RadPropertyGridCommands.MovePageDown can-execute callback.

C#
protected virtual bool CanMovePageDown()
Returns:

bool

Represents the logic that is going to be executed in RadPropertyGridCommands.MovePageUp can-execute callback.

C#
protected virtual bool CanMovePageUp()
Returns:

bool

Represents the logic that is going to be executed in RadPropertyGridCommands.MoveToFirst can-execute callback.

C#
protected virtual bool CanMoveToFirst()
Returns:

bool

Represents the logic that is going to be executed in RadPropertyGridCommands.MoveToLast can-execute callback.

C#
protected virtual bool CanMoveToLast()
Returns:

bool

Represents the logic that is going to be executed in RadPropertyGridCommands.MoveToNext can-execute callback.

C#
protected virtual bool CanMoveToNext()
Returns:

bool

Represents the logic that is going to be executed in RadPropertyGridCommands.MoveToPrevious can-execute callback.

C#
protected virtual bool CanMoveToPrevious()
Returns:

bool

Represents the logic that is going to be executed in RadPropertyGridCommands.Search can-execute callback.

C#
protected virtual bool CanSearch()
Returns:

bool

Represents the logic that is going to be executed in RadPropertyGridCommands.Sort can-execute callback.

C#
protected virtual bool CanSort()
Returns:

bool

Ensures that the PropertyDefinition with the given index is scrolled into view.

C#
protected void EnsureIndexIntoView(int index)
Parameters:indexint

Represents the logic that is going to be executed in RadPropertyGridCommands.ExpandCurrentField execute callback.

C#
protected virtual void ExpandCurrentField()

Expands the current item.

C#
protected void ExpandCurrentFieldInternal()

Represents the logic that is going to be executed in RadPropertyGridCommands.Group execute callback.

C#
protected virtual void Group()

Handles the logic executed on KeyDown.

C#
public virtual void HandleKeyDown(KeyEventArgs args)
Parameters:argsKeyEventArgs

Implements: IKeyboardCommandExecutor.HandleKeyDown(KeyEventArgs)

Represents the logic that is going to be executed in RadPropertyGridCommands.MovePageDown execute callback.

C#
protected virtual void MovePageDown()

Represents the logic that is going to be executed in RadPropertyGridCommands.MovePageUp execute callback.

C#
protected virtual void MovePageUp()

Represents the logic that is going to be executed in RadPropertyGridCommands.MoveToFirst execute callback.

C#
protected virtual void MoveToFirst()

Executes the logic that moves focus to the first field's editor.

C#
protected void MoveToFirstInternal()

Represents the logic that is going to be executed in RadPropertyGridCommands.MoveToFirst execute callback.

C#
protected virtual void MoveToLast()

Executes the logic that moves focus to the last field's editor.

C#
protected void MoveToLastInternal()

Represents the logic that is going to be executed in RadPropertyGridCommands.MoveToNext execute callback.

C#
protected virtual void MoveToNext()

Represents the logic that is going to be executed in RadPropertyGridCommands.MoveToPrevious execute callback.

C#
protected virtual void MoveToPrevious()

Provides a list of actions to be executed when a key is pressed.

C#
public virtual List<DelegateCommandWrapper> ProvideCommandsForKey(KeyEventArgs args)
Parameters:argsKeyEventArgsReturns:

List<DelegateCommandWrapper>

Implements: IKeyboardCommandExecutor.ProvideCommandsForKey(KeyEventArgs)

Registers the CommandBindings.

C#
public void RegisterCommandBindings()

Implements: ICommandProvider.RegisterCommandBindings()

Scrolls the PropertyDefinition with the given index into view.

C#
protected void ScrollIndexIntoView(int index, ScrollViewer scrollViewer)
Parameters:indexint

The index.

scrollViewerScrollViewer

The scroll viewer.

Represents the logic that is going to be executed in RadPropertyGridCommands.Search execute callback.

C#
protected virtual void Search(string searchParameter)
Parameters:searchParameterstring

Represents the logic that is going to be executed in RadPropertyGridCommands.Sort execute callback.

C#
protected virtual void Sort()