// (c) Copyright Microsoft Corporation. // This source is subject to the Microsoft Public License (Ms-PL). // Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details. // All other rights reserved. using System.Collections.ObjectModel; using System.Windows.Markup; namespace System.Windows.Controls.DataVisualization { /// /// Provides a way to choose a TreeMapItemDefinition based on the data item and /// the level of the item in the tree. /// /// Preview public abstract class TreeMapItemDefinitionSelector { /// /// Initializes a new instance of the TreeMapItemDefinitionSelector class. /// protected TreeMapItemDefinitionSelector() { } /// /// Returns an instance of a TreeMapItemDefinition class used to specify properties for the /// current item. /// /// Reference to the TreeMap class. /// One of the nodes in the ItemsSource hierarchy. /// The level of the node in the hierarchy. /// The TreeMapItemDefinition to be used for this node. If this method returns null /// the TreeMap will use the value of its ItemDefinition property. public abstract TreeMapItemDefinition SelectItemDefinition(TreeMap treeMap, object item, int level); } }