Share via


ListOrganizerItem Class

Definition

This control is the row in the ListOrganizer and offers editing functionality.

public ref class ListOrganizerItem : System::Windows::Controls::Control
public class ListOrganizerItem : System.Windows.Controls.Control
type ListOrganizerItem = class
    inherit Control
Public Class ListOrganizerItem
Inherits Control
Inheritance
ListOrganizerItem

Remarks

If a custom template is provided for this control, then the template MUST provide the following template parts:

PART_DeleteButton - A required template part which must be of type Button. Button which keeps track of whether the row should be deleted. PART_EditBox - A required template part which must be of type TextBox. Displays the text content in an editable manner. PART_LinkButton - A required template part which must be of type Button. Displays the text content in a read-only manner and allows single click selection. PART_RenameButton - A required template part which must be of type ToggleButton. Button which allows for editing the name of the item.

Constructors

ListOrganizerItem()

Creates a new instance of the ListOrganizerItem class.

Fields

TextContentPropertyNameProperty

Identifies the TextContentPropertyName dependency property.

Properties

IsInEditMode

Gets a value indicating whether the item is in edit mode.

TextContentPropertyName

Gets or sets a value which dictates what binding is used to provide content for the items in the list.

Methods

Delete()

Deletes the item.

OnApplyTemplate()

Called when ApplyTemplate is called.

OnKeyDown(KeyEventArgs)

Provides class handling for the KeyDown routed event that occurs when the user presses a key while this control has focus.

OnTextContentPropertyNameChanged(PropertyChangedEventArgs<String>)

Called when TextContentPropertyName property changes.

Rename()

Allows modification of the item.

Select()

Selects the current item.

Events

TextContentPropertyNameChanged

Occurs when TextContentPropertyName property changes.

Applies to