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

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

Méthodes publiques

Méthode 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

Méthode Description
WrapIndentation ( double indentation, Type targetType ) : object

Wrap the indentation in the desired type.

Method Details

Convert() public méthode

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. ///
Résultat object

ConvertBack() public méthode

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. ///
Résultat object

TreeViewItemIndentationConverter() public méthode

Initializes a new instance of the TreeViewItemIndentationConverter class.
public TreeViewItemIndentationConverter ( ) : System
Résultat System