C# Класс Microsoft.Silverlight.Testing.Controls.TreeViewItemIndentationConverter

Used to convert TreeViewItems into a value based on their depth in the TreeView.
Наследование: IValueConverter
Показать файл Открыть проект

Открытые методы

Метод Описание
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Convert a TreeViewItem into a value based on the depth of the item in the TreeView.

ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Convert an indentation back into a TreeViewItem. This always throws a NotSupportedException.

TreeViewItemIndentationConverter ( ) : System

Initializes a new instance of the TreeViewItemIndentationConverter class.

Приватные методы

Метод Описание
WrapIndentation ( double indentation, Type targetType ) : object

Wrap the indentation in the desired type.

Описание методов

Convert() публичный Метод

Convert a TreeViewItem into a value based on the depth of the item in the TreeView.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The TreeViewItem.
targetType System.Type /// The indentation type to convert to (such as Thickness or double). ///
parameter object /// 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. ///
culture System.Globalization.CultureInfo /// The culture used to convert the TreeViewItem. ///
Результат object

ConvertBack() публичный Метод

Convert an indentation back into a TreeViewItem. This always throws a NotSupportedException.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The indentation.
targetType System.Type The type of the indentation.
parameter object /// The number of pixels to indent each level of the TreeView. ///
culture System.Globalization.CultureInfo /// The culture used to convert the TreeViewItem. ///
Результат object

TreeViewItemIndentationConverter() публичный Метод

Initializes a new instance of the TreeViewItemIndentationConverter class.
public TreeViewItemIndentationConverter ( ) : System
Результат System