ItemContainer class
이 콘텐츠는 아직 번역되지 않았습니다.
The element an items control places around one item’s templated content, so an application can attach behavior to the whole item rather than to the template it wrote.
Guide: C# Markup guide
public class ItemContainer : ContentControl, ICommandArgumentSourcePublic Members
Section titled “Public Members”| name | description |
|---|---|
| ItemContainer() | The default constructor. |
| Index { get; } | Gets the index of the item this container currently holds, or -1 when it holds none. |
| IsSelected { get; } | Gets whether the item this container holds is selected. |
| Item { get; } | Gets the item this container currently holds, or null when it holds none. |
| static readonly IndexProperty | The index of the item this container currently holds, or -1 when it holds none. |
| static readonly IsSelectedProperty | Whether the item this container holds is selected. |
| static readonly ItemProperty | The item this container currently holds. |
Remarks
Section titled “Remarks”An items control places one around every realized item, and the container draws that item’s background over its row. Which background follows from its visual state through the triggers of its style, as for any control: selected, or under the pointer when its owner shows a row hover. The container is recycled across items, so the properties listed in ResetForItem are returned to their defaults before each prepare. It also supplies Item as the operand of commands invoked from within it, so a typed handler registered on an ancestor receives the item a context menu or shortcut acted on.
See Also
Section titled “See Also”- class ContentControl
- interface ICommandArgumentSource
- namespace Aprillz.MewUI.Controls