// -----------------------------------------------------------------------
//
// Copyright 2014 MIT Licence. See licence.md for more information.
//
// -----------------------------------------------------------------------
namespace Perspex.Controls.Templates
{
using System.Collections;
///
/// Interface representing a template used to build hierachical data.
///
public interface ITreeDataTemplate : IDataTemplate
{
///
/// Checks to see if the item should be initially expanded.
///
/// The item.
/// True if the item should be initially expanded, otherwise false.
bool IsExpanded(object item);
///
/// Selects the child items of an item.
///
/// The item.
/// The child items, or null if no child items.
IEnumerable ItemsSelector(object item);
}
}