Allow only height resize on RibbonWindow

Ribbon for WPF Forum

Posted 10 years ago by dss
Version: 9.1.0506
Avatar
Hi,

I am using RibbonWindow as a Dialog window. I am also using a vertical actipro navigation bar in it. Currently I have set SizeToContent = "Width" so that when navigation bar expands, width of the window increases automatically and have set ResizeMode="CanResize" as I want to allow user to increase height of the window if needed.

How can I not allow user to do a manual width resize on the window without specifying a particular min and max width?


Thanks,
dss

Comments (3)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
The only thing I can think of is that you'd probably have to put a window message hook on the Window and intercept the WM_SYSCOMMAND message when the appropriate sizing commands are passed to it.


Actipro Software Support

Posted 10 years ago by dss
Avatar
Can I can get a sample code for that please?

Thanks.
Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Well that's a bit of a tricky non-standard requirement so we would probably have to ask you to pay for consulting services if you need further help with it. More details on that here, and you can place a request for quote if you wish.
http://www.actiprosoftware.com/Purchase/ConsultingServices.aspx

Alternatively there is probably a decent amount of help on the web for adding window procs that you could use to get you going.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.