Class DataFormCommandProvider
Provides CommandBinding subscription functionality for RadDataForm.
Inheritance
Namespace: Telerik.Windows.Controls.Data.DataForm
Assembly: Telerik.Windows.Controls.Data.dll
Syntax
public class DataFormCommandProvider : DependencyObject, ICommandProvider, IKeyboardCommandExecutor
Constructors
DataFormCommandProvider()
Initializes a new instance of the DataFormCommandProvider class.
Declaration
public DataFormCommandProvider()
DataFormCommandProvider(RadDataForm)
Initializes a new instance of the DataFormCommandProvider class.
Declaration
public DataFormCommandProvider(RadDataForm dataForm)
Parameters
RadDataForm
dataForm
|
Fields
DataFormProperty
Represents the DataForm DependencyProperty.
Declaration
public static readonly DependencyProperty DataFormProperty
Field Value
System.Windows.DependencyProperty
|
EnableBuiltInNavigationProperty
ShouldProcessHandledEventsProperty
Represents the ShouldProcessHandledEvents dependency property.
Declaration
public static readonly DependencyProperty ShouldProcessHandledEventsProperty
Field Value
System.Windows.DependencyProperty
|
Properties
DataForm
Gets or sets the RadDataForm instance related to this provider.
Declaration
public RadDataForm DataForm { get; set; }
Property Value
RadDataForm
The DataForm instance. |
EnableBuiltInNavigation
ShouldProcessHandledEvents
Gets or sets a value that indicates whether handled events should be processed.
Declaration
public bool ShouldProcessHandledEvents { get; set; }
Property Value
System.Boolean
|
Implements
Methods
AddNew()
Represents the logic that is going to be executed in RadDataFormCommands.AddNew execute callback.
Declaration
protected virtual void AddNew()
BeginEdit()
Represents the logic that is going to be executed in RadDataFormCommands.BeginEdit execute callback.
Declaration
protected virtual void BeginEdit()
CanAddNewExecute()
Represents the logic that is going to be executed in RadDataFormCommands.AddNew can-execute callback.
Declaration
protected virtual bool CanAddNewExecute()
Returns
System.Boolean
|
CanBeginEditExecute()
Represents the logic that is going to be executed in RadDataFormCommands.BeginEdit can-execute callback.
Declaration
protected virtual bool CanBeginEditExecute()
Returns
System.Boolean
|
CanCancelEditExecute()
Represents the logic that is going to be executed in RadDataFormCommands.CancelEdit can-execute callback.
Declaration
protected virtual bool CanCancelEditExecute()
Returns
System.Boolean
|
CancelEdit()
Represents the logic that is going to be executed in RadDataFormCommands.CancelEdit execute callback.
Declaration
protected virtual void CancelEdit()
CanCommitEditExecute()
Represents the logic that is going to be executed in RadDataFormCommands.CommitEdit can-execute callback.
Declaration
protected virtual bool CanCommitEditExecute()
Returns
System.Boolean
|
CanDeleteExecute()
Represents the logic that is going to be executed in RadDataFormCommands.Delete can-execute callback.
Declaration
protected virtual bool CanDeleteExecute()
Returns
System.Boolean
|
CanMoveCurrentToFirstExecute()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToFirst can-execute callback.
Declaration
protected virtual bool CanMoveCurrentToFirstExecute()
Returns
System.Boolean
|
CanMoveCurrentToLastExecute()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToLast can-execute callback.
Declaration
protected virtual bool CanMoveCurrentToLastExecute()
Returns
System.Boolean
|
CanMoveCurrentToNextExecute()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToNext can-execute callback.
Declaration
protected virtual bool CanMoveCurrentToNextExecute()
Returns
System.Boolean
|
CanMoveCurrentToPreviousExecute()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToPrevious can-execute callback.
Declaration
protected virtual bool CanMoveCurrentToPreviousExecute()
Returns
System.Boolean
|
CommitEdit()
Represents the logic that is going to be executed in RadDataFormCommands.CommitEdit execute callback.
Declaration
protected virtual void CommitEdit()
Delete()
Represents the logic that is going to be executed in RadDataFormCommands.Delete execute callback.
Declaration
protected virtual void Delete()
HandleKeyDown(KeyEventArgs)
Handles the logic executed on KeyDown.
Declaration
public virtual void HandleKeyDown(KeyEventArgs args)
Parameters
System.Windows.Input.KeyEventArgs
args
|
Implements
MoveCurrentToFirst()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToFirst execute callback.
Declaration
protected virtual void MoveCurrentToFirst()
MoveCurrentToLast()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToLast execute callback.
Declaration
protected virtual void MoveCurrentToLast()
MoveCurrentToNext()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToNext execute callback.
Declaration
protected virtual void MoveCurrentToNext()
MoveCurrentToPrevious()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToPrevious execute callback.
Declaration
protected virtual void MoveCurrentToPrevious()
ProvideCommandsForKey(KeyEventArgs)
Provides a list of actions to be executed when a key is pressed.
Declaration
public virtual List<DelegateCommandWrapper> ProvideCommandsForKey(KeyEventArgs args)
Parameters
System.Windows.Input.KeyEventArgs
args
|
Returns
System.Collections.Generic.List<DelegateCommandWrapper>
|
Implements
RegisterCommandBindings()
Registers the CommandBindings.
Declaration
public void RegisterCommandBindings()