You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For those who like it fancy, introduce a property whether to display the
file icon.
The proposed solution displays the file icon in thumbnails and details view:
class ImageListView
{
private bool mShowFileIcon;
/// <summary>
/// Gets or sets whether to display the file icon.
/// </summary>
[Category("Appearance"), Description("Gets or sets whether to display the
file icon."), DefaultValue(true)]
public bool ShowFileIcon
{
get { return mShowFileIcon; }
set { mShowFileIcon = value; }
}
public ImageListView()
{
...
mShowFileIcon = true;
}
class ImageListViewRenderer
public virtual void DrawItem
{
...
if (mImageListView.ShowFileIcon)
g.DrawImage(Utility.GetFileIcon(item.FileName, false), bounds.Right - 18,
bounds.Top + 2);
// Focus rectangle
...
}
Original issue reported on code.google.com by [email protected] on 5 Mar 2010 at 10:19
Original issue reported on code.google.com by
[email protected]
on 5 Mar 2010 at 10:19Attachments:
The text was updated successfully, but these errors were encountered: