Пример #1
0
        public override object GroupNameFromItem(object item, int level, CultureInfo culture)
        {
            object value;

            if (string.IsNullOrEmpty(PropertyName))
            {
                value = item;
            }
            else
            {
                PropertyPathWalker = PropertyPathWalker ?? new PropertyPathWalker(PropertyName);
                value = PropertyPathWalker.GetValue(item);
            }

            if (converter != null)
            {
                value = converter.Convert(value, typeof(object), level, culture);
            }
            return(value);
        }