You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
665 B
20 lines
665 B
using System;
|
|
using System.Windows;
|
|
using System.Windows.Data;
|
|
|
|
namespace Microsoft.Windows.Controls.PropertyGrid.Converters
|
|
{
|
|
public class ExpandableObjectMarginConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|
{
|
|
int childLevel = (int)value;
|
|
return new Thickness(childLevel * 15, 0, 0, 0);
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|
|
|