Resizing a control in WPF

后端 未结 2 941
無奈伤痛
無奈伤痛 2020-12-09 00:42

I have a set of user controls in my wpf form and want to give ability to user to resize them. Whenever a user clicks on a control total 8 boundary rectangles should appear a

2条回答
  •  萌比男神i
    2020-12-09 00:45

    I made a library that applies resize grips to any control.

    Homepage has a quick gif video showing it in-action.

    Very simple, just call one line of code.

    //Set max resize to 200px max height, 300px max width.
    new CResizeAdorner(button1, 200, 300); 
    

提交回复
热议问题