How to measure size of content once scaled to fit the zoombox?
#2
This is strange.

I have tested that again and the ActualContentBounds worked correctly - with preserving the proportions.

Could you please check that with the ZoomPanelDump sample - here you can replace the tiger.xaml with some bigger content for example palazz_sport.xaml and see how the ActualContentBounds is changing.

If are changing the content from code or otherwise have dynamic content than you can try to call Refresh method on ZoomPanel to recalculate the values of the properties.

You can also check that you are not using RenderTransform on your content - that does not affect measure step and therefore ZoomPanel can get wrong size measurement for its content.

You can also check that your content is really 5423x2822 in size - call Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)) on the object and check its DesiredSize - is it 5423x2822?

Hopefully any advice will help you.
Andrej Benedik
  


Messages In This Thread
RE: How to measure size of content once scaled to fit the zoombox? - by abenedik - 03-12-2012, 04:33 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)