Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StyleableListItem&lt;T&gt;"/> 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;
 }