prevent usercontrol resize

2 posts, 0 answers
  1. Coder
    Coder avatar
    8 posts
    Member since:
    Jan 2014

    Posted 15 Jan 2014 Link to this post

    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.
  2. Jonathan
    Jonathan avatar
    1 posts
    Member since:
    Sep 2011

    Posted 16 Jan 2014 Link to this post

    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)
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top