Provides CommandBinding subscription functionality for RadDataForm.
Definition
Namespace:Telerik.Windows.Controls.Data.DataForm
Assembly:Telerik.Windows.Controls.Data.dll
Syntax:
public class DataFormCommandProvider : DependencyObject, ICommandProvider, IKeyboardCommandExecutor
Inheritance: objectDataFormCommandProvider
Implements:
Constructors
Initializes a new instance of the DataFormCommandProvider class.
public DataFormCommandProvider()
Initializes a new instance of the DataFormCommandProvider class.
Fields
DataFormProperty
DependencyProperty
Represents the DataForm DependencyProperty.
public static readonly DependencyProperty DataFormProperty
EnableBuiltInNavigationProperty
DependencyProperty
Represents the EnableBuiltInNavigation dependency property.
public static readonly DependencyProperty EnableBuiltInNavigationProperty
ShouldProcessHandledEventsProperty
DependencyProperty
Represents the ShouldProcessHandledEvents dependency property.
public static readonly DependencyProperty ShouldProcessHandledEventsProperty
Properties
Gets or sets the RadDataForm instance related to this provider.
public RadDataForm DataForm { get; set; }
The DataForm instance.
Gets or sets a value that indicates whether custom control navigation logic should be enabled.
public bool EnableBuiltInNavigation { get; set; }
Implements:
Gets or sets a value that indicates whether handled events should be processed.
public bool ShouldProcessHandledEvents { get; set; }
Implements:
Methods
Represents the logic that is going to be executed in RadDataFormCommands.AddNew execute callback.
protected virtual void AddNew()
Represents the logic that is going to be executed in RadDataFormCommands.BeginEdit execute callback.
protected virtual void BeginEdit()
Represents the logic that is going to be executed in RadDataFormCommands.AddNew can-execute callback.
Represents the logic that is going to be executed in RadDataFormCommands.BeginEdit can-execute callback.
Represents the logic that is going to be executed in RadDataFormCommands.CancelEdit can-execute callback.
Represents the logic that is going to be executed in RadDataFormCommands.CancelEdit execute callback.
protected virtual void CancelEdit()
Represents the logic that is going to be executed in RadDataFormCommands.CommitEdit can-execute callback.
Represents the logic that is going to be executed in RadDataFormCommands.Delete can-execute callback.
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToFirst can-execute callback.
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToLast can-execute callback.
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToNext can-execute callback.
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToPrevious can-execute callback.
Represents the logic that is going to be executed in RadDataFormCommands.CommitEdit execute callback.
protected virtual void CommitEdit()
Represents the logic that is going to be executed in RadDataFormCommands.Delete execute callback.
protected virtual void Delete()
Handles the logic executed on KeyDown.
public virtual void HandleKeyDown(KeyEventArgs args)
Implements:
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToFirst execute callback.
protected virtual void MoveCurrentToFirst()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToLast execute callback.
protected virtual void MoveCurrentToLast()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToNext execute callback.
protected virtual void MoveCurrentToNext()
Represents the logic that is going to be executed in RadDataFormCommands.MoveCurrentToPrevious execute callback.
protected virtual void MoveCurrentToPrevious()
Provides a list of actions to be executed when a key is pressed.
public virtual List<DelegateCommandWrapper> ProvideCommandsForKey(KeyEventArgs args)
Implements:
Registers the CommandBindings.
public void RegisterCommandBindings()
Implements: