C# Class Microsoft.Silverlight.Testing.Controls.TreeViewItemIndentationConverter

Used to convert TreeViewItems into a value based on their depth in the TreeView.
Inheritance: IValueConverter
Show file Open project: garyjohnson/wpnest

Public Methods

Method Description
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.

Private Methods

Method Description
WrapIndentation ( double indentation, Type targetType ) : object

Wrap the indentation in the desired type.

Method Details

Convert() public method

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. ///
return object

ConvertBack() public method

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. ///
return object

TreeViewItemIndentationConverter() public method

Initializes a new instance of the TreeViewItemIndentationConverter class.
public TreeViewItemIndentationConverter ( ) : System
return System