简体   繁体   中英

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

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?

您可以使用SplitContainer达到此效果

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM