Class TreeViewItemLevelConverter
Converts a TreeViewItem to its level in the hierarchy of its TreeView.
Implements
Inherited Members
Namespace: PresentationTheme.Aero
Assembly: PresentationTheme.Aero.dll
Syntax
[ValueConversion(typeof(TreeViewItem), typeof(int), ParameterType = typeof(int))]
public class TreeViewItemLevelConverter : DependencyObject, IValueConverter
Methods
| Improve this Doc View SourceConvert(Object, Type, Object, CultureInfo)
Converts a TreeViewItem to its level in the hierarchy of its TreeView. Also sets the ItemLevelProperty on each converted TreeViewItem.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
Object | value | The value produced by the binding source. |
Type | targetType | The type of the binding target property. |
Object | parameter | |
CultureInfo | culture | The culture to use in the converter. Not used. |
Returns
Type | Description |
---|---|
Object | The level of the TreeViewItem, multiplied by the
factor specified by |
Explicit Interface Implementations
| Improve this Doc View SourceIValueConverter.ConvertBack(Object, Type, Object, CultureInfo)
Declaration
object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
Object | value | |
Type | targetType | |
Object | parameter | |
CultureInfo | culture |
Returns
Type | Description |
---|---|
Object |