开发者

How can I dock/anchor two listviews vertically aligned to grow equally on orientation change?

开发者 https://www.devze.com 2022-12-20 10:09 出处:网络
I have two ListViews in Compact Framework 2.0 positioned vertically next to each other. Each of the ListViews occupies half of the screen. How can I dock/anchor them so when the orientation changes fo

I have two ListViews in Compact Framework 2.0 positioned vertically next to each other. Each of the ListViews occupies half of the screen. How can I dock/anchor them so when the orientation changes for landscape they grow equally and do not overlap each other.

From

-------- --------
|      | |      |    
|      | |      |    
|      | |      |    
-------- --------

Into

--------------  -------------
|            | |            |    
|            | |            |    
|            | |            |    
--------------  ------------开发者_如何学C-


(WinForms) Put them in 2 cells of a TableLayoutPanel. Set the Column-Widths to 50% each.

(After the) Edit: CF does not support this, use the ReSize event of the Form or containing Panel to do it yourself.

0

精彩评论

暂无评论...
验证码 换一张
取 消