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

Provides CommandBinding subscription functionality for RadDataForm.

Definition

Namespace:Telerik.Windows.Controls.Data.DataForm

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
public class DataFormCommandProvider : DependencyObject, ICommandProvider, IKeyboardCommandExecutor

Inheritance: objectDataFormCommandProvider

Implements: ICommandProviderIKeyboardCommandExecutor

Constructors

Initializes a new instance of the DataFormCommandProvider class.

C#
public DataFormCommandProvider()

Initializes a new instance of the DataFormCommandProvider class.

C#
public DataFormCommandProvider(RadDataForm dataForm)
Parameters:dataFormRadDataForm

Fields

DataFormProperty

DependencyProperty

Represents the DataForm DependencyProperty.

C#
public static readonly DependencyProperty DataFormProperty

Represents the EnableBuiltInNavigation dependency property.

C#
public static readonly DependencyProperty EnableBuiltInNavigationProperty

Represents the ShouldProcessHandledEvents dependency property.

C#
public static readonly DependencyProperty ShouldProcessHandledEventsProperty

Properties

Gets or sets the RadDataForm instance related to this provider.

C#
public RadDataForm DataForm { get; set; }
Property Value:

The DataForm instance.

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 a value that indicates whether handled events should be processed.

C#
public bool ShouldProcessHandledEvents { get; set; }

Implements: ICommandProvider.ShouldProcessHandledEvents

Methods

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

C#
protected virtual void AddNew()

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

C#
protected virtual void BeginEdit()

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

C#
protected virtual bool CanAddNewExecute()
Returns:

bool

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

C#
protected virtual bool CanBeginEditExecute()
Returns:

bool

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

C#
protected virtual bool CanCancelEditExecute()
Returns:

bool

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

C#
protected virtual void CancelEdit()

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

C#
protected virtual bool CanCommitEditExecute()
Returns:

bool

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

C#
protected virtual bool CanDeleteExecute()
Returns:

bool

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

C#
protected virtual bool CanMoveCurrentToFirstExecute()
Returns:

bool

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

C#
protected virtual bool CanMoveCurrentToLastExecute()
Returns:

bool

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

C#
protected virtual bool CanMoveCurrentToNextExecute()
Returns:

bool

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

C#
protected virtual bool CanMoveCurrentToPreviousExecute()
Returns:

bool

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

C#
protected virtual void CommitEdit()

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

C#
protected virtual void Delete()

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 RadDataFormCommands.MoveCurrentToFirst execute callback.

C#
protected virtual void MoveCurrentToFirst()

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

C#
protected virtual void MoveCurrentToLast()

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

C#
protected virtual void MoveCurrentToNext()

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

C#
protected virtual void MoveCurrentToPrevious()

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