Ejemplo n.º 1
0
 /// <summary>
 /// Real method to get the file icon after parsing the parameter.
 /// </summary>
 /// <param name="value">The databound value.</param>
 /// <param name="large">if set to <c>true</c> return large icon.</param>
 /// <returns></returns>
 protected virtual ImageSource GetFileIconCore(object value, bool large)
 {
     if (value == null)
     {
         return(null);
     }
     return(IconReader.GetFileIconWpf(value.ToString(), large ? IconReader.IconSize.Large : IconReader.IconSize.Small, false));
 }