WPF › Tree List View › BinaryTreeListConnectingLineConverter
BinaryTreeListConnectingLineConverter
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.TreeControls.Converters
Tells a row's template whether the row is the last of its siblings, which is where a connecting line stops rather than carrying on down.
public sealed class BinaryTreeListConnectingLineConverter : IValueConverter
Inherits from / implements: IValueConverter
Remarks
For a template of your own for BinaryTreeListViewItem. The control's own
template does not need it: the rows draw their connecting lines themselves.
Members at a glance
| Methods | |
|---|---|
Convert | Reports whether the row is the last of its siblings. |
ConvertBack | Not supported: the template binds one way. |
Methods
Convert
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Reports whether the row is the last of its siblings.
Parameters
value- The row, a
TreeViewItem. targetType- Not used.
parameter- Not used.
culture- Not used.
Returns
true or false; false when
value is not a row.
ConvertBack
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Not supported: the template binds one way.
Parameters
value- Not used.
targetType- Not used.
parameter- Not used.
culture- Not used.
Returns
Always false.