Class TreeViewItemIndentationConverter
Used to convert TreeViewItems into a value based on their depth in the TreeView.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public class TreeViewItemIndentationConverter : IValueConverter
Constructors
| Improve this Doc View SourceTreeViewItemIndentationConverter()
Initializes a new instance of the TreeViewItemIndentationConverter class.
Declaration
public TreeViewItemIndentationConverter()
Methods
| Improve this Doc View SourceConvert(Object, Type, Object, CultureInfo)
Convert a TreeViewItem into a value based on the depth of the item in the TreeView.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The TreeViewItem. |
System.Type | targetType | The indentation type to convert to (such as Thickness or double). |
System.Object | parameter | The number of pixels to indent each level of the TreeView. A default value of 15.0 will be used if no parameter is provided. |
System.Globalization.CultureInfo | culture | The culture used to convert the TreeViewItem. |
Returns
Type | Description |
---|---|
System.Object | A value based on the depth of the item in the TreeView. |
ConvertBack(Object, Type, Object, CultureInfo)
Convert an indentation back into a TreeViewItem. This always throws a NotSupportedException.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The indentation. |
System.Type | targetType | The type of the indentation. |
System.Object | parameter | The number of pixels to indent each level of the TreeView. |
System.Globalization.CultureInfo | culture | The culture used to convert the TreeViewItem. |
Returns
Type | Description |
---|---|
System.Object | Always throws a NotSupportedException. |