I want to have a window that the User can resize, and I want this window to keep the scale proportions (MVVM way if it is possible !).
I have two different approaches:
- Handling the
SizeChangedEvent
and adjustWidth
orHeight
. Worked but the Window had really weird animations while resizing. - Handling the
MouseUp
event, to adjustWidth
orHeight
when the User releases the button (when resizing). Unfortunately, theMouseUp
event doesn't trigger when you release the LeftButton after resizing. I couldn't useMouseBinding
becauseMouseGesture
doesn't have a "MouseUp" parameter, only aLeftClick
!
Can you help me, giving me advice, code, links or anything useful?