日期:2014-05-18  浏览次数:20810 次

splitcontainer使用的简单问题
我希望在最大化的时候,splitcontainer.panel1的宽度不变,不知道有没有什么方法实现?


------解决方案--------------------
IsSplitterFixed property
 Determines if the splitter is movable by means of the keyboard or mouse.
 
SplitterDistance property
 Determines the distance in pixels from the left or upper edge to the movable splitter bar.
 
下面那个应该可以写死宽度吧。另外在Resize事件里面通过指定panel1的宽度也可以锁定。