/// <summary> /// Determines whether current list item has specified description. /// </summary> /// <param name="position">The list item position.</param> /// <returns><c>True</c> if current list item has specified description; otherwise, <c>false</c>.</returns> public bool Is(ListItemPosition position) { return((Position & position) == position); }
/// <summary> /// Initializes a new instance of the <see cref="StyleableListItem<T>"/> class. /// </summary> /// <param name="index">The index of the list item.</param> /// <param name="item">The list item.</param> /// <param name="position">The position of the list item.</param> public StyleableListItem(int index, T item, ListItemPosition position) { Index = index; Item = item; Position = position; }