C# WPF - Resizable Usercontrol / Page (Grab and drag resizing)

半腔热情 提交于 2019-12-13 05:50:42

问题


How do you make a user-resizable user control in WPF?

For example, in Visual Studio the user can resize their panels, like the Solution Explorer. How can I make my page be resizable?

I know that making a grid splitter is a solution, but any other solution besides that? Also will it take into account the other pages in the main window and resize them accordingly as well?

And how do I set a maximum horizontal resize limit?


回答1:


you can achieve this effect with a SplitContainer



来源:https://stackoverflow.com/questions/53350970/c-sharp-wpf-resizable-usercontrol-page-grab-and-drag-resizing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!