Class
PropertyGridCommandProvider

Provides command logic and navigation functionality for a RadPropertyGrid control.

Definition

Namespace:Telerik.Windows.Controls.Data.PropertyGrid

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

cs-api-definition
public class PropertyGridCommandProvider : DependencyObject, ICommandProvider, IKeyboardCommandExecutor

Inheritance: objectPropertyGridCommandProvider

Implements: ICommandProviderIKeyboardCommandExecutor

Constructors

PropertyGridCommandProvider()

Initializes a new instance of the PropertyGridCommandProvider class.

Declaration

cs-api-definition
public PropertyGridCommandProvider()

PropertyGridCommandProvider(RadPropertyGrid)

Initializes a new instance of the PropertyGridCommandProvider class.

Declaration

cs-api-definition
public PropertyGridCommandProvider(RadPropertyGrid propertyGrid)

Parameters

propertyGrid

RadPropertyGrid

Fields

EnableBuiltInNavigationProperty

Represents the EnableBuiltInNavigation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EnableBuiltInNavigationProperty

Field Value

DependencyProperty

PropertyGridProperty

Represents the PropertyGrid DependencyProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty PropertyGridProperty

Field Value

DependencyProperty

ShouldProcessHandledEventsProperty

Represents the ShouldProcessHandledEvents dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShouldProcessHandledEventsProperty

Field Value

DependencyProperty

Properties

CurrentIndex

Gets the index of the current PropertyDefinition.

Declaration

cs-api-definition
protected int CurrentIndex { get; }

Property Value

int

The index of the current.

EnableBuiltInNavigation

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

Declaration

cs-api-definition
public bool EnableBuiltInNavigation { get; set; }

Property Value

bool

Implements ICommandProvider.EnableBuiltInNavigation

PropertyGrid

Gets or sets the RadPropertyGrid instance related to this provider.

Declaration

cs-api-definition
public RadPropertyGrid PropertyGrid { get; set; }

Property Value

RadPropertyGrid

The RadPropertyGrid instance.

ShouldProcessHandledEvents

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

Declaration

cs-api-definition
public bool ShouldProcessHandledEvents { get; set; }

Property Value

bool

Implements ICommandProvider.ShouldProcessHandledEvents

SourceList

Gets the processed PropertyDefinitions list.

Declaration

cs-api-definition
protected List<object> SourceList { get; }

Property Value

List<object>

The source list.

Methods

CanExpandCurrentField()

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

Declaration

cs-api-definition
protected virtual bool CanExpandCurrentField()

Returns

bool

CanGroup()

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

Declaration

cs-api-definition
protected virtual bool CanGroup()

Returns

bool

CanMovePageDown()

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

Declaration

cs-api-definition
protected virtual bool CanMovePageDown()

Returns

bool

CanMovePageUp()

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

Declaration

cs-api-definition
protected virtual bool CanMovePageUp()

Returns

bool

CanMoveToFirst()

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

Declaration

cs-api-definition
protected virtual bool CanMoveToFirst()

Returns

bool

CanMoveToLast()

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

Declaration

cs-api-definition
protected virtual bool CanMoveToLast()

Returns

bool

CanMoveToNext()

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

Declaration

cs-api-definition
protected virtual bool CanMoveToNext()

Returns

bool

CanMoveToPrevious()

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

Declaration

cs-api-definition
protected virtual bool CanMoveToPrevious()

Returns

bool

CanSearch()

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

Declaration

cs-api-definition
protected virtual bool CanSearch()

Returns

bool

CanSort()

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

Declaration

cs-api-definition
protected virtual bool CanSort()

Returns

bool

EnsureIndexIntoView(int)

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

Declaration

cs-api-definition
protected void EnsureIndexIntoView(int index)

Parameters

index

int

ExpandCurrentField()

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

Declaration

cs-api-definition
protected virtual void ExpandCurrentField()

ExpandCurrentFieldInternal()

Expands the current item.

Declaration

cs-api-definition
protected void ExpandCurrentFieldInternal()

Group()

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

Declaration

cs-api-definition
protected virtual void Group()

HandleKeyDown(KeyEventArgs)

Handles the logic executed on KeyDown.

Declaration

cs-api-definition
public virtual void HandleKeyDown(KeyEventArgs args)

Parameters

args

KeyEventArgs

Implements IKeyboardCommandExecutor.HandleKeyDown(KeyEventArgs)

MovePageDown()

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

Declaration

cs-api-definition
protected virtual void MovePageDown()

MovePageUp()

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

Declaration

cs-api-definition
protected virtual void MovePageUp()

MoveToFirst()

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

Declaration

cs-api-definition
protected virtual void MoveToFirst()

MoveToFirstInternal()

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

Declaration

cs-api-definition
protected void MoveToFirstInternal()

MoveToLast()

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

Declaration

cs-api-definition
protected virtual void MoveToLast()

MoveToLastInternal()

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

Declaration

cs-api-definition
protected void MoveToLastInternal()

MoveToNext()

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

Declaration

cs-api-definition
protected virtual void MoveToNext()

MoveToPrevious()

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

Declaration

cs-api-definition
protected virtual void MoveToPrevious()

ProvideCommandsForKey(KeyEventArgs)

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

Declaration

cs-api-definition
public virtual List<DelegateCommandWrapper> ProvideCommandsForKey(KeyEventArgs args)

Parameters

args

KeyEventArgs

Returns

List<DelegateCommandWrapper>

Implements IKeyboardCommandExecutor.ProvideCommandsForKey(KeyEventArgs)

RegisterCommandBindings()

Registers the CommandBindings.

Declaration

cs-api-definition
public void RegisterCommandBindings()

Implements ICommandProvider.RegisterCommandBindings()

ScrollIndexIntoView(int, ScrollViewer)

Scrolls the PropertyDefinition with the given index into view.

Declaration

cs-api-definition
protected void ScrollIndexIntoView(int index, ScrollViewer scrollViewer)

Parameters

index

int

The index.

scrollViewer

ScrollViewer

The scroll viewer.

Search(string)

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

Declaration

cs-api-definition
protected virtual void Search(string searchParameter)

Parameters

searchParameter

string

Sort()

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

Declaration

cs-api-definition
protected virtual void Sort()