Class
DataFormCommandProvider

Provides CommandBinding subscription functionality for RadDataForm.

Definition

Namespace:Telerik.Windows.Controls.Data.DataForm

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

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

Inheritance: objectDataFormCommandProvider

Implements: ICommandProviderIKeyboardCommandExecutor

Constructors

DataFormCommandProvider()

Initializes a new instance of the DataFormCommandProvider class.

Declaration

cs-api-definition
public DataFormCommandProvider()

DataFormCommandProvider(RadDataForm)

Initializes a new instance of the DataFormCommandProvider class.

Declaration

cs-api-definition
public DataFormCommandProvider(RadDataForm dataForm)

Parameters

dataForm

RadDataForm

Fields

DataFormProperty

Represents the DataForm DependencyProperty.

Declaration

cs-api-definition
public static readonly DependencyProperty DataFormProperty

Field Value

DependencyProperty

EnableBuiltInNavigationProperty

Represents the EnableBuiltInNavigation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EnableBuiltInNavigationProperty

Field Value

DependencyProperty

ShouldProcessHandledEventsProperty

Represents the ShouldProcessHandledEvents dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShouldProcessHandledEventsProperty

Field Value

DependencyProperty

Properties

DataForm

Gets or sets the RadDataForm instance related to this provider.

Declaration

cs-api-definition
public RadDataForm DataForm { get; set; }

Property Value

RadDataForm

The DataForm instance.

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

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

Methods

AddNew()

Represents the logic that is going to be executed in RadDataFormCommands.AddNew execute callback.

Declaration

cs-api-definition
protected virtual void AddNew()

BeginEdit()

Represents the logic that is going to be executed in RadDataFormCommands.BeginEdit execute callback.

Declaration

cs-api-definition
protected virtual void BeginEdit()

CanAddNewExecute()

Represents the logic that is going to be executed in RadDataFormCommands.AddNew can-execute callback.

Declaration

cs-api-definition
protected virtual bool CanAddNewExecute()

Returns

bool

CanBeginEditExecute()

Represents the logic that is going to be executed in RadDataFormCommands.BeginEdit can-execute callback.

Declaration

cs-api-definition
protected virtual bool CanBeginEditExecute()

Returns

bool

CanCancelEditExecute()

Represents the logic that is going to be executed in RadDataFormCommands.CancelEdit can-execute callback.

Declaration

cs-api-definition
protected virtual bool CanCancelEditExecute()

Returns

bool

CanCommitEditExecute()

Represents the logic that is going to be executed in RadDataFormCommands.CommitEdit can-execute callback.

Declaration

cs-api-definition
protected virtual bool CanCommitEditExecute()

Returns

bool

CanDeleteExecute()

Represents the logic that is going to be executed in RadDataFormCommands.Delete can-execute callback.

Declaration

cs-api-definition
protected virtual bool CanDeleteExecute()

Returns

bool

CanMoveCurrentToFirstExecute()

Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToFirst can-execute callback.

Declaration

cs-api-definition
protected virtual bool CanMoveCurrentToFirstExecute()

Returns

bool

CanMoveCurrentToLastExecute()

Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToLast can-execute callback.

Declaration

cs-api-definition
protected virtual bool CanMoveCurrentToLastExecute()

Returns

bool

CanMoveCurrentToNextExecute()

Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToNext can-execute callback.

Declaration

cs-api-definition
protected virtual bool CanMoveCurrentToNextExecute()

Returns

bool

CanMoveCurrentToPreviousExecute()

Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToPrevious can-execute callback.

Declaration

cs-api-definition
protected virtual bool CanMoveCurrentToPreviousExecute()

Returns

bool

CancelEdit()

Represents the logic that is going to be executed in RadDataFormCommands.CancelEdit execute callback.

Declaration

cs-api-definition
protected virtual void CancelEdit()

CommitEdit()

Represents the logic that is going to be executed in RadDataFormCommands.CommitEdit execute callback.

Declaration

cs-api-definition
protected virtual void CommitEdit()

Delete()

Represents the logic that is going to be executed in RadDataFormCommands.Delete execute callback.

Declaration

cs-api-definition
protected virtual void Delete()

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)

MoveCurrentToFirst()

Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToFirst execute callback.

Declaration

cs-api-definition
protected virtual void MoveCurrentToFirst()

MoveCurrentToLast()

Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToLast execute callback.

Declaration

cs-api-definition
protected virtual void MoveCurrentToLast()

MoveCurrentToNext()

Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToNext execute callback.

Declaration

cs-api-definition
protected virtual void MoveCurrentToNext()

MoveCurrentToPrevious()

Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToPrevious execute callback.

Declaration

cs-api-definition
protected virtual void MoveCurrentToPrevious()

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()