Adding an icon to right-to-left ListView items causes the icons to flip in C# WinForms

前端 未结 1 488
离开以前
离开以前 2021-01-28 21:42

I have a ListView. Its RightToLeft property is set to Yes and its RightToLeftLayout is set to True. The Li

1条回答
  •  悲&欢浪女
    2021-01-28 22:38

    If you only need the icon to be reversed, I suggest putting it into a Bitmap then using the Bitmap.RotateFlip you can flip it horizontally.

    Bitmap bm = System.Drawing.Icon.ExtractAssociatedIcon(string filePath).ToBitmap();
    bm.RotateFlip(RotateFlipType.RotateNoneFlipX);
    

    0 讨论(0)
提交回复
热议问题