简体   繁体   中英

Center align images in ListView (Compact Framework)

I am working on a mobile application where the main menu is created by a ListView . I have the following as my screen now:

当前应用程序屏幕

I am trying to align the icons in a better way. What I need is to align the icons to the center (both horizontal and vertical)! I am looking for something like this:

所需的应用程序屏幕

I am not able to find any property or methods that can help me achieve this. Any idea how to do it on Compact framework? I am using CF 3.5 and C# to build the application.

Any idea or solution highly appreciated!

As far as I know that's not possible with the ListView.

The fastest way is probably to drop a bunch of PictureBoxes on your form, and implementing the Click-event. A more reusable way is to create a custom control and build your own version.

There is also the option of paying for a third party library of controls. If that's your preference then that question has been asked here before: 3rd Party UI components for .net Compact Framework?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM