// Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Collections.Generic;
namespace Avalonia.Controls.Generators
{
///
/// Maintains an index of all item containers currently materialized by a .
///
///
/// Each has its own
/// that maintains the list of its direct children, but they also share an instance of this
/// class in their property which tracks
/// the containers materialized for the entire tree.
///
public class TreeContainerIndex
{
private readonly Dictionary