This is a migrated thread and some comments may be shown as answers.

prevent usercontrol resize

1 Answer 52 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Coder
Top achievements
Rank 1
Coder asked on 15 Jan 2014, 08:54 PM
Hi,

I have a usercontrol chart imbedded in a dock panel.

Everytime I resize the main window, the panel, and hence chart control resizes as well. This causes the chart's scale to change. How do I disable this feature?

Than is, I would like the chart to remain the same size as the main window resizes, forcing the user to scroll the chart to see the hidden parts.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 16 Jan 2014, 03:39 PM
Why not simply use a ScrollViewer to wrap the chart, and set the chart's minwidth/minheight/maxwidth/maxheight? (Or use a layout container that supports min/max width/height)
Tags
Docking
Asked by
Coder
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Share this question
or