Exemplo n.º 1
0
 /// <summary>
 /// Exposes a <see cref="Views.Row"/> object to UI automation.
 /// </summary>
 /// <param name="item">The <see cref="DataGrid"/> to associate with this <see cref="RowAutomationPeer"/>.</param>
 public RowAutomationPeer(Row item)
     : base(item)
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates or identifies the element that is used to display the given item.
 /// </summary>
 /// <returns>
 /// The element that is used to display the given item.
 /// </returns>
 protected override DependencyObject GetContainerForItemOverride()
 {
     if (this.cacheIndex < this.cachedGUI.Count)
     {
         return this.cachedGUI[this.cacheIndex++];
     }
     this.cacheIndex++;
     Row row = new Row();
     row.SetBinding(Row.IndexProperty, dataItemToIndexBinding);
     this.cachedGUI.Add(row);
     return row;
 }