/// <summary> /// Gets the formatted value of the property for the current source path. /// </summary> public string GetFormattedValue(ModelInstance root, string format, IFormatProvider provider, out object rawValue) { IModelPropertySource source = GetSource(root); if (source == null) { rawValue = null; return(null); } rawValue = source[SourceProperty]; return(source.GetFormattedValue(SourceProperty, format)); }
/// <summary> /// Gets the formatted value of the property for the current source path. /// </summary> /// <param name="root"></param> /// <param name="format">The specific format to use</param> /// <returns></returns> public string GetFormattedValue(ModelInstance root, string format) { IModelPropertySource source = GetSource(root); return(source == null ? null : source.GetFormattedValue(SourceProperty, format)); }