分享

put a Image on ListBox Items using LiveBinding

 和谐世界 2022-07-01 发布于福建
How to put a Image on ListBox Items using LiveBinding

1) put a ListBox in your form, as usual!
2) in ListBox, change the property "DefaultItemStyles -> ItemStyle" to any other value with "Bitmap"... you can see looking in "Visual LiveBindind panel!

3) in LiveBinding panel, bind the property "Item.Bitmap" to data-source-bitmaps-values... like a FDMemTable, or any other DataSet
4) active the "Sync" and see the values in Desing/Runtime 

no code it's necessary! of course, maybe in your "updates" you needs add some code to post your updates... etc... etc...

see screenshot:
此帖子包含附件:
PNG 图像
大小:96.6K
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!    

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多