views:

29

answers:

1

I have a treeView with checkboxes and with image list.

Im trying to fix its look on both devices 6.0 and 6.5 but i cant get it to work. Either its ok on one device and looks crappy on the other.

The checkboxes are so small on 6.5 that i cant even tap them. If i change the font i get huge checkboxes and text on 6.0 device. Also i dont know how to set the image size so it would look good on both devices.

Can i get any tip how to handle this the proper way?

thanx !

+1  A: 

Use separate resources that you set at runtime based on the platform on which you're running.

ctacke
Hmmm ... the problem are pictures in imageList. I think that making a factory class and checking registry for device os version or screen resolution is not the proper way. Is there some DPI option that would resize the image properly by itself?
no9
Not that works well or that generates images that don't look terrible, no.
ctacke
actualy the correct way is to figure out the DPI of the device. Divide that by 96 and you get 1pixed equivalent to all devices. All values (width, height) have to be multiplied with that result...
no9