Show / Hide Table of Contents

Class TreeViewItemIndentationConverter

Used to convert TreeViewItems into a value based on their depth in the TreeView.

Inheritance
System.Object
TreeViewItemIndentationConverter
Implements
IValueConverter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public class TreeViewItemIndentationConverter : IValueConverter

Constructors

| Improve this Doc View Source

TreeViewItemIndentationConverter()

Initializes a new instance of the TreeViewItemIndentationConverter class.

Declaration
public TreeViewItemIndentationConverter()

Methods

| Improve this Doc View Source

Convert(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.

| Improve this Doc View Source

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.

Implements

IValueConverter
  • Improve this Doc
  • View Source