A base class for the editable headered items control. The does not include all the editable logic and needs to be inherited.
Definition
Namespace:Telerik.Windows.Controls.TreeView
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public abstract class EditableHeaderedItemsControl : HeaderedItemsControl
Inheritance: objectEditableHeaderedItemsControl
Derived Classes:
Constructors
protected EditableHeaderedItemsControl()
Fields
EditCanceledEvent
RoutedEvent
Identifies the EditCanceled routed event.
public static readonly RoutedEvent EditCanceledEvent
EditedEvent
RoutedEvent
Identifies the Edit routed event.
public static readonly RoutedEvent EditedEvent
EditorPrepareEvent
RoutedEvent
Identifies the EditorPrepare routed event.
public static readonly RoutedEvent EditorPrepareEvent
EditStartedEvent
RoutedEvent
Identifies the EditStarted routed event.
public static readonly RoutedEvent EditStartedEvent
HeaderEditTemplateProperty
DependencyProperty
Identifies the HeaderEditTemplate dependency property.
public static readonly DependencyProperty HeaderEditTemplateProperty
HeaderEditTemplateSelectorProperty
DependencyProperty
Identifies the HeaderEditTemplate dependency property.
public static readonly DependencyProperty HeaderEditTemplateSelectorProperty
IsEditableProperty
DependencyProperty
Identifies the IsEditable dependency property.
public static readonly DependencyProperty IsEditableProperty
IsInEditModeProperty
DependencyProperty
Identifies the IsInEditMode dependency property.
public static readonly DependencyProperty IsInEditModeProperty
PreviewEditCanceledEvent
RoutedEvent
Identifies the EditCanceled routed event.
public static readonly RoutedEvent PreviewEditCanceledEvent
PreviewEditedEvent
RoutedEvent
Identifies the PreviewEdited routed event.
public static readonly RoutedEvent PreviewEditedEvent
PreviewEditorPrepareEvent
RoutedEvent
Identifies the PreviewEditorPrepare routed event.
public static readonly RoutedEvent PreviewEditorPrepareEvent
PreviewEditStartedEvent
RoutedEvent
Identifies the PreviewEditStarted routed event.
public static readonly RoutedEvent PreviewEditStartedEvent
Properties
HeaderEditPresenterElement
ContentPresenter
Gets the content presenter used for editing.
protected ContentPresenter HeaderEditPresenterElement { get; }
HeaderEditTemplate
DataTemplate
Gets or sets the header edit template.
public DataTemplate HeaderEditTemplate { get; set; }
The header edit template.
HeaderEditTemplateSelector
DataTemplateSelector
Gets or sets the header edit template selector.
public DataTemplateSelector HeaderEditTemplateSelector { get; set; }
The header edit template selector.
Gets or sets a value indicating whether the control is editable.
public bool IsEditable { get; set; }
Gets or sets a value indicating whether this instance is in edit mode.
public bool IsInEditMode { get; set; }
True if this instance is in edit mode, otherwise false.
Methods
Adds a handler for the EditCanceled routed event.
public static void AddEditCanceledHandler(UIElement target, RadTreeViewItemEditedEventHandler handler)
The element to add a handler to.
handlerRadTreeViewItemEditedEventHandlerThe routed event handler.
Adds a handler for the Edited routed event.
public static void AddEditedHandler(UIElement target, RadTreeViewItemEditedEventHandler handler)
The element to add a handler to.
handlerRadTreeViewItemEditedEventHandlerThe routed event handler.
Removes a handler for the EditorPrepare routed event.
public static void AddEditorPrepareHandler(UIElement target, EditorPrepareEventHandler handler)
The element to remove handler from.
handlerEditorPrepareEventHandlerThe handler to be removed.
Adds a handler for the EditStarted routed event.
public static void AddEditStartedHandler(UIElement target, RadTreeViewItemEditedEventHandler handler)
The element to add a handler to.
handlerRadTreeViewItemEditedEventHandlerThe routed event handler.
Adds a handler for the PreviewEdited routed event.
public static void AddPreviewEditedHandler(UIElement target, RadTreeViewItemEditedEventHandler handler)
The element to add a handler to.
handlerRadTreeViewItemEditedEventHandlerThe routed event handler.
Adds a handler for the PreviewEditorPrepare routed event.
public static void AddPreviewEditorPrepareHandler(UIElement target, EditorPrepareEventHandler handler)
The element to add a handler to.
handlerEditorPrepareEventHandlerThe routed event handler.
Adds a handler for the PreviewEditStarted routed event.
public static void AddPreviewEditStartedHandler(UIElement target, RadTreeViewItemEditedEventHandler handler)
The element to add a handler to.
handlerRadTreeViewItemEditedEventHandlerThe routed event handler.
Entry point for editing.
Tries to cancel editing.
Updates the visual states of the control.
protected virtual void ChangeVisualState(bool useTransitions)
Specifies whether transitions should be used.
Tries to Commit edit.
Extracts a value that will be edited. This is normally the header of the control.
Called when the template of the control is being applied.
public override void OnApplyTemplate()
Raises the event.
protected virtual bool OnEditCanceled(RadTreeViewItemEditedEventArgs e)
The event data.
Returns:Raises the event.
protected virtual void OnEdited(RadTreeViewItemEditedEventArgs e)
The RadTreeViewItemEditedEventArgs instance containing the event data.
Called when the item editor has been prepared.
protected virtual void OnEditorPrepare(EditorPrepareEventArgs e)
The arguments for the event.
Raises the event.
protected virtual void OnEditStarted(RadTreeViewItemEditedEventArgs e)
The RadTreeViewItemEditedEventArgs instance containing the event data.
Called when the HeaderEditTemplate changes.
protected virtual void OnHeaderEditTemplateChanged(DataTemplate oldTemplate, DataTemplate newTemplate)
The old HeaderEditTemplate.
newTemplateDataTemplateThe new HeaderEditTemplate.
Called when the HeaderEditTemplateSelector changes.
protected virtual void OnHeaderEditTemplateSelectorChanged(DataTemplateSelector oldTemplateSelector, DataTemplateSelector newTemplateSelector)
The old HeaderEditTemplateSelector.
newTemplateSelectorDataTemplateSelectorThe new HeaderEditTemplateSelector.
Raises the event.
protected virtual bool OnPreviewEditCanceled(RadTreeViewItemEditedEventArgs e)
The the event data.
Returns:Raises the event.
protected virtual bool OnPreviewEdited(RadTreeViewItemEditedEventArgs e)
The RadTreeViewItemEditedEventArgs instance containing the event data.
Returns:Called when the PreviewEditorPrepare event is raised.
protected virtual void OnPreviewEditorPrepare(EditorPrepareEventArgs e)
The event arguments.
Raises the event.
protected virtual bool OnPreviewEditStarted(RadTreeViewItemEditedEventArgs e)
The RadTreeViewItemEditedEventArgs instance containing the event data.
Returns:Called when the editor for the edit operation is begin prepared.
protected virtual void PrepareEditor(RadTreeViewItemEditedEventArgs e)
The arguments for the event.
Removes a handler for the EditCanceled routed event.
public static void RemoveEditCanceledHandler(UIElement target, RadTreeViewItemEditedEventHandler handler)
The element to remove handler from.
handlerRadTreeViewItemEditedEventHandlerThe handler to be removed.
Removes a handler for the Edited routed event.
public static void RemoveEditedHandler(UIElement target, RadTreeViewItemEditedEventHandler handler)
The element to remove handler from.
handlerRadTreeViewItemEditedEventHandlerThe handler to be removed.
Removes a handler for the EditorPrepare routed event.
public static void RemoveEditorPrepareHandler(UIElement target, EditorPrepareEventHandler handler)
The element to remove handler from.
handlerEditorPrepareEventHandlerThe handler to be removed.
Removes a handler for the EditStarted routed event.
public static void RemoveEditStartedHandler(UIElement target, RadTreeViewItemEditedEventHandler handler)
The element to remove handler from.
handlerRadTreeViewItemEditedEventHandlerThe handler to be removed.
Removes a handler for the PreviewEdited routed event.
public static void RemovePreviewEditedHandler(UIElement target, RadTreeViewItemEditedEventHandler handler)
The element to remove handler from.
handlerRadTreeViewItemEditedEventHandlerThe handler to be removed.
Removes a handler for the PreviewEditorPrepare routed event.
public static void RemovePreviewEditorPrepareHandler(UIElement target, EditorPrepareEventHandler handler)
The element to remove handler from.
handlerEditorPrepareEventHandlerThe handler to be removed.
Removes a handler for the PreviewEditStarted routed event.
public static void RemovePreviewEditStartedHandler(UIElement target, RadTreeViewItemEditedEventHandler handler)
The element to remove handler from.
handlerRadTreeViewItemEditedEventHandlerThe handler to be removed.
Sets the new value after a successful edit. By default it sets the header.
Events
Occurs after an edit has been cancelled.
public event RadTreeViewItemEditedEventHandler EditCanceled
Occurs when a item has been edited.
public event RadTreeViewItemEditedEventHandler Edited
The event is raised when an editor needs to be prepared.
public event EditorPrepareEventHandler EditorPrepare
Occurs after edit of the control has started.
public event RadTreeViewItemEditedEventHandler EditStarted
Occurs just before an edit has been cancelled.
public event RadTreeViewItemEditedEventHandler PreviewEditCanceled
Occurs before the edit is committed.
public event RadTreeViewItemEditedEventHandler PreviewEdited
Raised before an editor for an edit operation needs to be prepared.
public event EditorPrepareEventHandler PreviewEditorPrepare
Occurs before the edit has begun.
public event RadTreeViewItemEditedEventHandler PreviewEditStarted