Settings ViewboxLimits
#2
By default, the FitToHeight method will start an animation that will slowly change the Viewbox to the viewbox that will show the content in the available height.

This is also written in the help file and online help for the FitToHeight method - see https://www.ab4d.com/help/ZoomPanel/html/M_Ab2d_Controls_ZoomPanel_FitToHeight.htm

So, you just need to set IsAnimated to false before calling FitToHeight. Then the Viewbox will have the final value immediately after calling FitToHeigth.
Andrej Benedik
  


Messages In This Thread
Settings ViewboxLimits - by jez - 09-25-2020, 02:31 PM
RE: Settings ViewboxLimits - by abenedik - 11-02-2020, 04:06 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)