ListItem Properties

The ListItem type exposes the following members.

  NameDescription
Public property AllowDrop Gets or sets a value that indicates whether this element can be used as the target of a drag-and-drop operation. This is a dependency property. (Inherited from ContentElement.)
Public property Background Gets or sets the Brush used to fill the background of the content area. This is a dependency property. (Inherited from TextElement.)
Public property BindingGroup Gets or sets the BindingGroup that is used for the element. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property Blocks Gets a block collection that contains the top-level Block elements of the ListItem.
Public property BorderBrush Gets or sets a Brush to use when painting the element's border. This is a dependency property.
Public property BorderThickness Gets or sets the border thickness for the element. This is a dependency property.
Public property CommandBindings Gets a collection of CommandBinding objects that are associated with this element. (Inherited from ContentElement.)
Public property ContentEnd Gets a TextPointer that represents the end of the content in the element. (Inherited from TextElement.)
Public property ContentStart Gets a TextPointer that represents the start of content in the element. (Inherited from TextElement.)
Public property ContextMenu Gets or sets the context menu element that should appear whenever the context menu is requested via user interface (UI) from within this element. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property Cursor Gets or sets the cursor that displays when the mouse pointer is over this element. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property DataContext Gets or sets the data context for an element when it participates in data binding. This is a dependency property. (Inherited from FrameworkContentElement.)
Protected property DefaultStyleKey Gets or sets the key to use to find the style template for this control in themes. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property DependencyObjectType Gets the DependencyObjectType that wraps the CLR type of this instance. (Inherited from DependencyObject.)
Public property Dispatcher Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public property ElementEnd Gets a TextPointer that represents the position just after the end of the element. (Inherited from TextElement.)
Public property ElementStart Gets a TextPointer that represents the position just before the start of the element. (Inherited from TextElement.)
Public property FlowDirection Gets or sets the relative direction for flow of content within a ListItem element. This is a dependency property.
Public property Focusable Gets or sets a value that indicates whether the element can receive focus. This is a dependency property. (Inherited from ContentElement.)
Public property FocusVisualStyle Gets or sets an object that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property FontFamily Gets or sets the preferred top-level font family for the content of the element. This is a dependency property. (Inherited from TextElement.)
Public property FontSize Gets or sets the font size for the content of the element. This is a dependency property. (Inherited from TextElement.)
Public property FontStretch Gets or sets the font-stretching characteristics for the content of the element. This is a dependency property. (Inherited from TextElement.)
Public property FontStyle Gets or sets the font style for the content of the element. This is a dependency property. (Inherited from TextElement.)
Public property FontWeight Gets or sets the top-level font weight for the content of the element. This is a dependency property. (Inherited from TextElement.)
Public property ForceCursor Gets or sets a value indicating whether this FrameworkContentElement should force the user interface (UI) to render the cursor as declared by this instance's Cursor property. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property Foreground Gets or sets the Brush to apply to the content of the element. This is a dependency property. (Inherited from TextElement.)
Public property HasAnimatedProperties Gets a value that indicates whether this element has any animated properties. (Inherited from ContentElement.)
Public property InputBindings Gets the collection of input bindings that are associated with this element. (Inherited from ContentElement.)
Public property InputScope Gets or sets the context for input used by this FrameworkContentElement. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property IsEnabled Gets or sets a value that indicates whether this element is enabled in the user interface (UI). This is a dependency property. (Inherited from ContentElement.)
Protected property IsEnabledCore Gets a value that becomes the return value of IsEnabled in derived classes. (Inherited from ContentElement.)
Public property IsFocused Gets a value that determines whether this element has logical focus. This is a dependency property. (Inherited from ContentElement.)
Public property IsInitialized Gets a value indicating whether this element has been initialized, either by being loaded as Extensible Application Markup Language (XAML), or by explicitly having its EndInit method called. (Inherited from FrameworkContentElement.)
Public property IsInputMethodEnabled Gets a value that indicates whether an input method system, such as an Input Method Editor (IME), is enabled for processing the input to this element. (Inherited from ContentElement.)
Public property IsKeyboardFocused Gets a value that indicates whether this element has keyboard focus. This is a dependency property. (Inherited from ContentElement.)
Public property IsKeyboardFocusWithin Gets a value that indicates whether keyboard focus is anywhere within the element or child elements. This is a dependency property. (Inherited from ContentElement.)
Public property IsLoaded Gets a value indicating whether this element has been loaded for presentation. (Inherited from FrameworkContentElement.)
Public property IsMouseCaptured Gets a value that indicates whether the mouse is captured by this element. This is a dependency property. (Inherited from ContentElement.)
Public property IsMouseCaptureWithin Gets a value that determines whether mouse capture is held by this element or by child elements in its element tree. This is a dependency property. (Inherited from ContentElement.)
Public property IsMouseDirectlyOver Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account. This is a dependency property. (Inherited from ContentElement.)
Public property IsMouseOver Gets a value that indicates whether the mouse pointer is located over this element (including visual child elements, or its control compositing). This is a dependency property. (Inherited from ContentElement.)
Public property IsSealed Gets a value that declares whether this instance is currently read-only. (Inherited from DependencyObject.)
Public property IsStylusCaptured Gets a value that indicates whether the stylus is captured to this element. This is a dependency property. (Inherited from ContentElement.)
Public property IsStylusCaptureWithin Gets a value that determines whether stylus capture is held by this element, including child elements and control compositing. This is a dependency property. (Inherited from ContentElement.)
Public property IsStylusDirectlyOver Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account. This is a dependency property. (Inherited from ContentElement.)
Public property IsStylusOver Gets a value that indicates whether the stylus is located over this element (including visual child elements). This is a dependency property. (Inherited from ContentElement.)
Public property Language Gets or sets localization/globalization language information that applies to an individual element. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property LineHeight Gets or sets the height of each line of content. This is a dependency property.
Public property LineStackingStrategy Gets or sets the mechanism by which a line box is determined for each line of text within the ListItem. This is a dependency property.
Public property List Gets the List that contains the ListItem.
Protected property LogicalChildren Gets an enumerator that can iterate the logical children of the element. (Inherited from TextElement.)
Public property Margin Gets or sets the margin thickness for the element. This is a dependency property.
Public property Name Gets or sets the identifying name of the element. The name provides an instance reference so that programmatic code-behind, such as event handler code, can refer to an element once it is constructed during parsing of XAML. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property NextListItem Gets the next ListItem in the containing List.
Public property OverridesDefaultStyle Gets or sets a value indicating whether this element incorporates style properties from theme styles. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property Padding Gets or sets the padding thickness for the element. This is a dependency property.
Public property Parent Gets the parent in the logical tree for this element. (Inherited from FrameworkContentElement.)
Public property PreviousListItem Gets the previous ListItem in the containing List.
Public property Resources Gets or sets the current locally-defined resource dictionary. (Inherited from FrameworkContentElement.)
Public property SiblingListItems Gets a ListItemCollection that contains the ListItem elements that are siblings of the current ListItem element.
Public property Style Gets or sets the style to be used by this element. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property Tag Gets or sets an arbitrary object value that can be used to store custom information about this element. This is a dependency property. (Inherited from FrameworkContentElement.)
Public property TemplatedParent Gets a reference to the template parent of this element. This property is not relevant if the element was not created through a template. (Inherited from FrameworkContentElement.)
Public property TextAlignment Gets or sets a value that indicates the horizontal alignment of text content. This is a dependency property.
Public property TextEffects Gets or sets a collection of text effects to apply to the content of the element. This is a dependency property. (Inherited from TextElement.)
Public property ToolTip Gets or sets the tool-tip object that is displayed for this element in the user interface (UI). This is a dependency property. (Inherited from FrameworkContentElement.)
Public property Typography Gets the currently effective typography variations for the content of the element. (Inherited from TextElement.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft