protected PropertyViewModels(Component component, PropertyInfo prop) { Assert.NotNull(prop); Assert.NotNull(component); Property = prop; Component = component; DisplayName = DisplayAttribute.GetPropertyDisplayName(prop); Tooltip = new PropertyTooltipViewModel(prop); }
public PropertyTooltipViewModel(PropertyInfo prop) { Property = prop; DisplayName = DisplayAttribute.GetPropertyDisplayName(prop); PropertyName = "{0}.{1}".UseFormat(prop.DeclaringType.Name, prop.Name); PropertyType = prop.PropertyType.Name; Description = DisplayAttribute.GetPropertyDescription(prop); OnlineHelpURL = Config.PropertyOnlineHelpUrlFormat .UseFormat(prop.DeclaringType.FullName, prop.Name); DetailedDescription = null; }