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?

Need Your Help

Showing any XML or JS Object as a Tree

javascript xml treeview

I know there are lots of libraries which creates Tree View Component. But every one of them expects a pre-defined structure. I want something which would take any XML or a JS object and show it as ...

Browser detection with IE10/IE11

javascript internet-explorer browser-detection

I am trying to redirect users to certain pages depending on which browser they are using, specifically if IE, then go to this page, else any other browser this page.. I had a JavaScript function th...